// ----------------------------------------------------------------------------------- /// <summary> /// Selects the first icon in the grid. You usually /// call this right after the menu screen opens /// </summary> public void SelectFirst() { Transform firstPage = pagesRoot.GetChild(0); CharacterIcon icon = random; // change to first icon on first page if there are // any pages (ie: not empty) if (firstPage != null && firstPage.childCount > 0) { Transform first = firstPage.GetChild(0); icon = first.GetComponent <CharacterIcon>(); } icon.Select(); icon.OnSubmit(null); }