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

Adjustment for Issue #50

parent 5f01d5b9
No related branches found
No related tags found
No related merge requests found
......@@ -100,11 +100,9 @@ void BuildScrolls(string jsonString)
obj.transform.GetChild(0).gameObject.GetComponent<TextMeshProUGUI>().text = this.scrolls[i].label;
ScrollButtons[i] = obj;
}
Scroll preferredStartScroll = this.scrolls.Find(x => x.label.Equals(preferredStartScrollName));
if(preferredStartScroll != null)
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.
Finish editing this message first!
Please register or to comment