Пример #1
0
        private IEnumerator OpenConfirmDialog(DeckModel deck)
        {
            yield return(new WaitForEndOfFrame());

            StrategyDialog.disableBackTouch();
            StrategyDialog.isUseDefaultKeyController = false;
            StrategyDialog.OpenDialog(2);
            StrategyTaskManager.GetStrategyRebellion().keycontrol.IsRun = false;
            StrategyDialog.setOpenAction(delegate
            {
                this.GoSortieConfirm.SetKeyController(new KeyControl());
            });
        }
 private void OpenDeckInfo()
 {
     DeckInfoConfirm.SetKeyController(new KeyControl());
     commonDialog.setOpenAction(delegate
     {
         DeckInfoConfirm.SetKeyController(new KeyControl());
     });
     commonDialog.OpenDialog(2, DialogAnimation.AnimType.FEAD);
     DeckInfoConfirm.Initialize(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck, isConfirm: true);
     DeckInfoConfirm.SetPushYesButton(delegate
     {
         mKeyController.IsRun = false;
         commonDialog.CloseDialog();
         OnStartSortieStage();
         Close();
     });
     DeckInfoConfirm.SetPushNoButton(delegate
     {
         commonDialog.CloseDialog();
     });
 }
Пример #3
0
 private bool KeyAction()
 {
     if (DeckSelectController.IsChangeIndex)
     {
         bool isNext = (DeckSelectController.prevIndexChangeValue == 1) ? true : false;
         SearchAndChangeDeck(isNext, isSeachLocalArea: false);
         if (prevDeckID != SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID)
         {
             changeDeck(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID);
             StrategyTopTaskManager.Instance.UIModel.Character.PlayVoice(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck);
             if (StrategyTopTaskManager.Instance.UIModel.Character.shipModel != null)
             {
                 StrategyTopTaskManager.GetSailSelect().moveCharacterScreen(isEnter: true, null);
             }
         }
         return(true);
     }
     if (StrategyAreaManager.sailKeyController.IsChangeIndex)
     {
         areaManager.UpdateSelectArea(StrategyAreaManager.sailKeyController.Index);
     }
     else if (DeckSelectController.keyState[1].down)
     {
         if (SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.GetFlagShip() == null)
         {
             GotoOrganize();
         }
         else
         {
             OpenCommandMenu();
         }
     }
     else if (DeckSelectController.keyState[3].down)
     {
         if (SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.GetShipCount() != 0)
         {
             if (prevDeckID != SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID)
             {
                 changeDeck(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID);
                 StrategyTopTaskManager.Instance.UIModel.Character.PlayVoice(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck);
             }
             if (SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide() != null)
             {
                 SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide().Hide();
             }
             uiGoSortieConfirm.SetKeyController(new KeyControl());
             commonDialog.OpenDialog(2, DialogAnimation.AnimType.FEAD);
             uiGoSortieConfirm.Initialize(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck, isConfirm: false);
             commonDialog.setCloseAction(delegate
             {
                 KeyControlManager.Instance.KeyController = DeckSelectController;
                 if (SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide() != null)
                 {
                     TutorialModel tutorial = StrategyTopTaskManager.GetLogicManager().UserInfo.Tutorial;
                     SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide().Show();
                 }
             });
             SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
         }
     }
     else if (DeckSelectController.keyState[5].down)
     {
         SingletonMonoBehaviour <PortObjectManager> .Instance.BackToPortOrOrganize();
     }
     else if (DeckSelectController.keyState[0].down)
     {
         areaManager.UpdateSelectArea(SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID);
     }
     else if (DeckSelectController.keyState[2].down)
     {
         if (SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide() != null)
         {
             SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide().Hide();
         }
         commonDialog.OpenDialog(4);
         commonDialog.keyController.IsRun = false;
         commonDialog.setOpenAction(delegate
         {
             commonDialog.keyController.IsRun = true;
         });
         commonDialog.ShikakuButtonAction = delegate
         {
             Close();
             StrategyTopTaskManager.ReqMode(StrategyTopTaskManager.StrategyTopTaskManagerMode.TurnEnd);
             StrategyTopTaskManager.GetTurnEnd().TurnEnd();
             if (StrategyTopTaskManager.Instance.TutorialGuide8_1 != null)
             {
                 if (SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide() != null)
                 {
                     SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide().HideAndDestroy();
                 }
                 StrategyTopTaskManager.Instance.TutorialGuide8_1.HideAndDestroy();
             }
         };
         commonDialog.BatuButtonAction = delegate
         {
             if (SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide() != null)
             {
                 SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide().Show();
             }
         };
     }
     return(true);
 }