Exemple #1
0
 public void Play(DelDecideAdvancingWithdrawalButton decideCallback)
 {
     this._delDecideAdvancingWithdrawalButton = decideCallback;
     base.Init();
     this._setShipTexture();
     this._setLabel();
     this._btnIndex = 0;
     this._listIsBtn.set_Item(0, true);
     this._uiSmoke.SetActive(true);
     this._uiSmoke.Play();
     this._listHexBtns.ForEach(delegate(UIHexButton x)
     {
         x.SetActive(true);
         x.Play(UIHexButton.AnimationList.HexButtonShow, delegate
         {
             if (this._isBattleCut)
             {
                 UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();
                 navigation.SetNavigationInEscortShipEvacuation();
                 navigation.Show(0.2f, null);
             }
             else
             {
                 UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation;
                 battleNavigation.SetNavigationInEscortShipEvacuation();
                 battleNavigation.Show(0.2f, null);
             }
             this._isInputPossible = true;
             this.SetAdvancingWithdrawalBtnState(this._btnIndex);
         });
     });
 }
Exemple #2
0
 public bool Run()
 {
     if (_isPlayMsg1)
     {
         _clsMessage1.Update();
         if (_clsMessage1.IsMessageEnd)
         {
             _clsMessage2.Play();
             _isPlayMsg1 = false;
             _isPlayMsg2 = true;
         }
     }
     if (_isPlayMsg2)
     {
         _clsMessage2.Update();
         if (_clsMessage2.IsMessageEnd)
         {
             if (_isBattleCut)
             {
                 UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();
                 navigation.SetNavigationInFlagshipWreck();
                 navigation.Show(0.2f, null);
             }
             else
             {
                 UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation;
                 battleNavigation.SetNavigationInFlagshipWreck();
                 battleNavigation.Show(0.2f, null);
             }
             _isPlayMsg2 = false;
             _isControl  = true;
             _uiBackBtn.GetComponent <UISprite>().alpha = 1f;
             _uiBackBtn.transform.localPosition         = new Vector3(420f, -205f, 0f);
             _backBtnAnim.Play();
         }
     }
     if (_isFinished)
     {
         return(true);
     }
     if (!_isControl)
     {
         return(false);
     }
     if (_keyControl.keyState[1].down)
     {
         compFlagshipWreck();
     }
     return(false);
 }