public static void SceneCallBack()
 {
     StrategyTopTaskManager.GetCommandMenu().DeckEnableCheck();
     if (StrategyTaskManager.callBack != null)
     {
         StrategyTaskManager.callBack.Invoke();
         StrategyTaskManager.callBack = null;
     }
 }
Exemple #2
0
        public void OnClickPositiveButton()
        {
            DeckModel currentDeck = SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck;

            missionMng.MissionStop(currentDeck.Id);
            mKeyController         = null;
            dialogAnim.CloseAction = DestroyThis;
            dialogAnim.StartAnim(DialogAnimation.AnimType.FEAD, isOpen: false);
            StrategyTopTaskManager.GetCommandMenu().DeckEnableCheck();
        }
        public void pushMenuButton()
        {
            if (this.isChangeingDeck)
            {
                return;
            }
            if (StrategyTopTaskManager.Instance.UIModel.MapCamera.isMoving)
            {
                return;
            }
            if (!StrategyTopTaskManager.GetCommandMenu().isRun)
            {
                Debug.Log("Not CommandMenuMode return");
                return;
            }
            if (!this.CommandMenu.isOpen)
            {
                Debug.Log("Not CommandMenu Open return");
                return;
            }
            int  num = this.areaModel.GetDecks().Length;
            bool flag;

            if (this.isMenuActive((TaskStrategyCommandMenu.MENU_NAME) this.keyController.Index))
            {
                Debug.Log("PUSH");
                flag = this.pushCommandMenuList.get_Item(this.keyController.Index)();
                this.CommandMenu.menuParts[this.keyController.Index].setColider(false);
            }
            else
            {
                flag = false;
            }
            if (flag)
            {
                SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1);
            }
            else
            {
                SoundUtils.PlayOneShotSE(SEFIleInfos.CommonCancel2);
            }
        }
Exemple #4
0
 public void OpenCommandMenu()
 {
     if (StrategyTopTaskManager.GetCommandMenu().CommandMenu.isOpen)
     {
         return;
     }
     changeDeckAreaSelect(StrategyTopTaskManager.Instance.TileManager.FocusTile.areaID);
     StrategyTopTaskManager.Instance.GetInfoMng().ExitInfoPanel();
     if (UnityEngine.Random.Range(0, 3) == 0)
     {
         if (SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.GetFlagShip() != null && SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.MissionState == MissionStates.NONE)
         {
             ShipUtils.PlayShipVoice(SingletonMonoBehaviour <AppInformation> .Instance.FlagShipModel, 3);
         }
     }
     else
     {
         SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
     }
     StrategyTopTaskManager.ReqMode(StrategyTopTaskManager.StrategyTopTaskManagerMode.CommandMenu);
     Close();
 }
Exemple #5
0
 private void DestroyThis()
 {
     KeyControlManager.Instance.KeyController = StrategyTopTaskManager.GetCommandMenu().keyController;
     UnityEngine.Object.Destroy(base.gameObject);
 }