public void OpenMenu(MenuUI menu) { if (IsTransitioning) { return; /// exits if transitioning } // switch menues and add menu to stack SwitchMenu(CurrentMenu, menu); _menuStack.Push(menu); OnOpenMenu.Invoke(); }