Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
 public static void NextMenu(MenuBasis menu, bool invisiblePrevious = true)
 {
     if (CurrentFocus != null) {
         if (invisiblePrevious) {
             hideAllMenu();
         }
         MenuStack.Add(CurrentFocus);
     }
     CurrentFocus = menu;
 }
Esempio n. 4
0
 public static bool isCurrentFocus(MenuBasis target)
 {
     return CurrentFocus == target;
 }
Esempio n. 5
0
 public CloseMenu(MenuBasis menu, bool playsound = true)
     : base()
 {
     Menu = menu;
     PlayCloseSound = playsound;
 }
Esempio n. 6
0
 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;
 }