IEnumerator showMenuContent(XmlNode node, MenuElement menuElement) { if (!menuElement.IsLoaded){ //Debug.Log("wait 1 sec"); yield return new WaitForSeconds(1); } _lastPage = new InteractImagePage(node, menuElement); _lastPage.show(); }
void subMenuChangeHandler(GuiEvent e) { //Debug.Log("sub menu changed"); if (_lastPage != null){ _lastPage.hide(); } if (_subMenu.selectedItem != null){ if (_lastPage == null){ _sceneScript.hideScene(); this.enabled = false; } _lastPage = _subMenu.GetPageAtIndex(_subMenu.selectedItem.listIndex); _lastPage.show(); } }