Skip to content
Snippets Groups Projects
Commit 44e947f2 authored by Samuel Truman's avatar Samuel Truman
Browse files

Display 'end dialog' as last branch text

parent 0089bd66
No related branches found
No related tags found
No related merge requests found
......@@ -68,9 +68,7 @@ public void OnBranchesUpdated(IList<Branch> currentBranches) {
branchText = target.MenuText;
}
if(string.IsNullOrWhiteSpace(branchText)) {
Debug.Log("no branch text");
Debug.Log(i);
var hasNext = currentBranches[i].Target != null;
var hasNext = currentBranches[i].Target is IObjectWithText;
branchText = hasNext ? "Continue" : "End dialog";
}
buttons[i].GetComponentInChildren<TMP_Text>().text = branchText;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment