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()); } }); } }
private void OnDecideAdvancingWithdrawal(AdvancingWithdrawalDCType iType, ShipRecoveryType iRecoveryType) { RetentionData.SetData(BattleUtils.GetRetentionDataAdvancingWithdrawalDC(BattleCutManager.GetMapManager(), iRecoveryType)); switch (iType) { case AdvancingWithdrawalDCType.Withdrawal: if (SingletonMonoBehaviour <FadeCamera> .Instance != null) { SingletonMonoBehaviour <FadeCamera> .Instance.SetActive(isActive : true); SingletonMonoBehaviour <FadeCamera> .Instance.FadeOut(0.2f, delegate { Mst_DataManager.Instance.PurgeUIBattleMaster(); SingletonMonoBehaviour <FadeCamera> .Instance.isDrawNowLoading = false; SingletonMonoBehaviour <AppInformation> .Instance.NextLoadScene = Generics.Scene.Strategy; Application.LoadLevel(Generics.Scene.LoadingScene.ToString()); }); } break; case AdvancingWithdrawalDCType.Youin: case AdvancingWithdrawalDCType.Megami: TrophyUtil.Unlock_At_GoNext(); BattleCutManager.EndBattleCut(iRecoveryType); break; case AdvancingWithdrawalDCType.AdvancePrimary: BattleCutManager.GetMapManager().ChangeCurrentDeck(); BattleCutManager.EndBattleCut(iRecoveryType); break; } SingletonMonoBehaviour <SoundManager> .Instance.soundVolume.BGM = BattleDefines.SOUND_KEEP.BGMVolume; SingletonMonoBehaviour <SoundManager> .Instance.rawBGMVolume = BattleDefines.SOUND_KEEP.BGMVolume; Object.Destroy(_prodBCAdvancingWithdrawalDC.gameObject); Mem.Del(ref _prodBCAdvancingWithdrawalDC); }