public static void doDisableMenu(MenuBasis menu) { if (CurrentFocus == null) return; if (CurrentFocus.Equals(menu)) { doDisableMenu(); } else if (MenuStack.Contains(menu)) { MenuStack.Find(m => m.Equals(menu)).doDisable(); MenuStack.Remove(menu); } if (CurrentFocus == null && GameController.CurrentGameState == GameController.GameState.MENU) GameController.gameStateChange(GameController.GameState.PLAY); }
public static void doEnableMenu(MenuBasis menu, bool changegamestate = true, bool invisibleCurrentmenu = true) { //Debug.Log(menu.MenuName); if (CurrentFocus != null && CurrentFocus.ImmediateryErase) doDisableMenu(); NextMenu(menu,invisibleCurrentmenu); CurrentFocus.doEnable(); CurrentFocus.opendMenu(); if (changegamestate) GameController.gameStateChange(GameController.GameState.MENU); //CurrentFocus.Visible = true; //GameController.SoundController.playMenuOpen(); }
public static void NextMenu(MenuBasis menu, bool invisiblePrevious = true) { if (CurrentFocus != null) { if (invisiblePrevious) { hideAllMenu(); } MenuStack.Add(CurrentFocus); } CurrentFocus = menu; }
public static bool isCurrentFocus(MenuBasis target) { return CurrentFocus == target; }
public CloseMenu(MenuBasis menu, bool playsound = true) : base() { Menu = menu; PlayCloseSound = playsound; }
public void startEagleEyeMode(Room room, MenuBasis menu) { if (room == null) { GameController.PlayingLogger.showPlayingLog("ここでは見渡すことができません。"); return; } if (CurrentTrackingMode == TrackingModeType.EAGLEEYE ) return; GameController.startProgress(); MenuContoller.doDisableAllMenu(); PreviousCameraPosition = this.gameObject.transform.position; PreviousTrackingMode = CurrentTrackingMode; Menu = menu; Room = room; CurrentTrackingMode = TrackingModeType.EAGLEEYE; }