void HandleBackClicked() { if (level2Menu != null) { MenuManager.Instance.previousMenu = _homeMenu; MenuManager.Instance.currentMenu = level1Menu; level2Menu.Close(); level1Menu.Open(); ShowLevel1Elements(); level2Menu = null; } else if (level1Menu != null) { MenuManager.Instance.previousMenu = _homeMenu; MenuManager.Instance.currentMenu = _homeMenu; level1Menu.Close(); _homeMenu.Open(); Hide(); level1Menu = null; } }
private void Start() { currentMenu = _homeMenu; _homeMenu.Open(); }