public void SwitchToMenu(JDMenu menu, bool saveMenu = true) { if (menu != null) { JDMenu topMenu = menus.FirstOrDefault(m => m.IsTopLevel); if (topMenu != null) { topMenu.SendToBackLayer(); if (saveMenu) { history.Push(topMenu); } } menu.BringToTopLayer(); } }
public void AssignMenu(JDMenu menuToNavigate) { ToMenu = menuToNavigate; }
public override void Start() { base.Start(); GameObject level = GameObject.Find("LevelText"); LevelText = DynamicText.GetTextMesh(level.transform.GetChild(0).gameObject); LevelText.SetText(""); pausedMenu = navigate.GetMenu("Pause Menu"); }