Example #1
0
 public void backToCommandMenu()
 {
     SoundUtils.PlaySE(SEFIleInfos.CommonCancel1);
     this.DelayActionFrame(1, delegate
     {
         MainPanel.SafeGetTweenAlpha(1f, 0f, 0.3f, 0f, UITweener.Method.Linear, UITweener.Style.Once, null, string.Empty);
         TweenAlpha component = MainPanel.GetComponent <TweenAlpha>();
         StrategyTopTaskManager.GetSailSelect().moveCharacterScreen(isEnter: false, null);
         component.onFinished.Clear();
         component.SetOnFinished(delegate
         {
             this.DelayAction(0.15f, delegate
             {
                 MainPanel.SetActive(isActive: false);
                 TransportPanel.SetActive(isActive: false);
                 StrategyTopTaskManager.Instance.GetInfoMng().changeCharacter(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck);
                 MainPanel.DestroyEscortOrganize();
                 this.DelayActionFrame(3, delegate
                 {
                     KeyControlManager.Instance.KeyController = CommandKeyController;
                     StrategyTopTaskManager.ReqMode(StrategyTopTaskManager.StrategyTopTaskManagerMode.CommandMenu);
                     StrategyTaskManager.SceneCallBack();
                 });
             });
         });
         Close();
         isInit = false;
     });
 }
Example #2
0
 public void backToDeployTop()
 {
     TweenAlpha.Begin(base.transform.parent.gameObject, 0.2f, 0f);
     SoundUtils.PlaySE(SEFIleInfos.CommonCancel1);
     _clsTop.UnVisibleEmptyFrame();
     this.DelayAction(0.2f, delegate
     {
         StrategyTopTaskManager.ReqMode(StrategyTopTaskManager.StrategyTopTaskManagerMode.Deploy);
     });
 }