Skip to content
Snippets Groups Projects
Commit bdca228e authored by John Schihada's avatar John Schihada
Browse files

Adjustment for Issue #50

parent 5f01d5b9
Branches
No related tags found
No related merge requests found
...@@ -100,11 +100,9 @@ void BuildScrolls(string jsonString) ...@@ -100,11 +100,9 @@ void BuildScrolls(string jsonString)
obj.transform.GetChild(0).gameObject.GetComponent<TextMeshProUGUI>().text = this.scrolls[i].label; obj.transform.GetChild(0).gameObject.GetComponent<TextMeshProUGUI>().text = this.scrolls[i].label;
ScrollButtons[i] = obj; ScrollButtons[i] = obj;
} }
Scroll preferredStartScroll = this.scrolls.Find(x => x.label.Equals(preferredStartScrollName)); Scroll preferredStartScroll = this.scrolls.Find(x => x.label.Equals(preferredStartScrollName));
if(preferredStartScroll != null) if(preferredStartScroll != null)
this.DetailScreen.GetComponent<ScrollDetails>().setScroll(preferredStartScroll); this.DetailScreen.GetComponent<ScrollDetails>().setScroll(preferredStartScroll);
else
this.DetailScreen.GetComponent<ScrollDetails>().setScroll(this.scrolls[0]);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment