Ejemplo n.º 1
0
 private void DecideAdvancinsWithDrawalBtn(UIHexButtonEx btn)
 {
     if (btn.index == 2)
     {
         MapManager mapManager = SortieBattleTaskManager.GetMapManager();
         mapManager.ChangeCurrentDeck();
     }
     if (BattleTaskManager.IsSortieBattle() && SingletonMonoBehaviour <FadeCamera> .Instance != null)
     {
         SingletonMonoBehaviour <FadeCamera> .Instance.FadeOut(0.2f, delegate
         {
             RetentionData.SetData(BattleUtils.GetRetentionDataAdvancingWithdrawal(SortieBattleTaskManager.GetMapManager(), ShipRecoveryType.None));
             if (btn.index == 0)
             {
                 SingletonMonoBehaviour <FadeCamera> .Instance.isDrawNowLoading  = false;
                 SingletonMonoBehaviour <AppInformation> .Instance.NextLoadScene = Generics.Scene.Strategy;
                 Application.LoadLevel(Generics.Scene.LoadingScene.ToString());
             }
             else
             {
                 SingletonMonoBehaviour <FadeCamera> .Instance.isDrawNowLoading = true;
                 Dlg.Call <ShipRecoveryType>(ref this._actOnGotoSortieMap, ShipRecoveryType.None);
             }
         });
     }
 }
 private void _onFlagshipWreckFinished()
 {
     if (BattleTaskManager.IsSortieBattle() && SingletonMonoBehaviour <FadeCamera> .Instance != null)
     {
         SingletonMonoBehaviour <FadeCamera> .Instance.isDrawNowLoading = false;
         SingletonMonoBehaviour <FadeCamera> .Instance.FadeOut(0.2f, delegate
         {
             RetentionData.SetData(BattleUtils.GetRetentionDataFlagshipWreck(SortieBattleTaskManager.GetMapManager(), ShipRecoveryType.None));
             SingletonMonoBehaviour <AppInformation> .Instance.NextLoadScene = Generics.Scene.Strategy;
             Application.LoadLevel(Generics.Scene.LoadingScene.ToString());
         });
     }
 }
 private void DecideAdvancinsWithDrawalBtn(UIHexButton btn)
 {
     if (BattleTaskManager.IsSortieBattle())
     {
         SingletonMonoBehaviour <AppInformation> .Instance.NextLoadScene = ((btn.index != 0) ? Generics.Scene.SortieAreaMap : Generics.Scene.Strategy);
         SingletonMonoBehaviour <FadeCamera> .Instance.isDrawNowLoading  = ((SingletonMonoBehaviour <AppInformation> .Instance.NextLoadScene == Generics.Scene.SortieAreaMap) ? true : false);
         SingletonMonoBehaviour <FadeCamera> .Instance.FadeOut(0.2f, delegate
         {
             if (btn.index == 1)
             {
                 TrophyUtil.Unlock_At_GoNext();
                 RetentionData.SetData(BattleUtils.GetRetentionDataAdvancingWithdrawalDC(SortieBattleTaskManager.GetMapManager(), ShipRecoveryType.Personnel));
                 Dlg.Call(ref _actOnGotoSortieMap, ShipRecoveryType.Personnel);
             }
             else if (btn.index == 2)
             {
                 TrophyUtil.Unlock_At_GoNext();
                 RetentionData.SetData(BattleUtils.GetRetentionDataAdvancingWithdrawalDC(SortieBattleTaskManager.GetMapManager(), ShipRecoveryType.Goddes));
                 Dlg.Call(ref _actOnGotoSortieMap, ShipRecoveryType.Goddes);
             }
             else if (btn.index == 3)
             {
                 MapManager mapManager = SortieBattleTaskManager.GetMapManager();
                 mapManager.ChangeCurrentDeck();
                 RetentionData.SetData(BattleUtils.GetRetentionDataAdvancingWithdrawalDC(mapManager, ShipRecoveryType.None));
                 Dlg.Call(ref _actOnGotoSortieMap, ShipRecoveryType.None);
             }
             else
             {
                 RetentionData.SetData(BattleUtils.GetRetentionDataAdvancingWithdrawalDC(SortieBattleTaskManager.GetMapManager(), ShipRecoveryType.None));
                 SingletonMonoBehaviour <AppInformation> .Instance.NextLoadScene = Generics.Scene.Strategy;
                 Application.LoadLevel(Generics.Scene.LoadingScene.ToString());
             }
         });
     }
 }