private IEnumerator createMapOpen(IObserver <bool> observer)
        {
            _prodMapOpen = ProdMapOpen.Instantiate(PrefabFile.Load <ProdMapOpen>(PrefabFileInfos.MapOpen), _clsResultModel, BattleTaskManager.GetBattleCameras().cutInCamera.transform, _clsInput, _clsMapManager, 120);
            yield return(new WaitForEndOfFrame());

            observer.OnNext(value: true);
            observer.OnCompleted();
        }
 private bool InitMapOpen(object data)
 {
     _prodMapOpen = ProdMapOpen.Instantiate(PrefabFile.Load <ProdMapOpen>(PrefabFileInfos.MapOpen), _clsResultModel, BattleCutManager.GetSharedPlase(), BattleCutManager.GetKeyControl(), BattleCutManager.GetMapManager(), 120);
     _prodMapOpen.Play(delegate
     {
         _clsState.AddState(InitShortRewardGet, UpdateShortRewardGet);
     });
     return(false);
 }
Beispiel #3
0
 private bool InitMapOpen(object data)
 {
     this._prodMapOpen = ProdMapOpen.Instantiate(PrefabFile.Load <ProdMapOpen>(PrefabFileInfos.MapOpen), this._clsResultModel, BattleCutManager.GetSharedPlase(), BattleCutManager.GetKeyControl(), BattleCutManager.GetMapManager(), 120);
     this._prodMapOpen.Play(delegate
     {
         this._clsState.AddState(new StatementMachine.StatementMachineInitialize(this.InitShortRewardGet), new StatementMachine.StatementMachineUpdate(this.UpdateShortRewardGet));
     });
     return(false);
 }
        private bool InitMapOpen(object data)
        {
            MapManager mapManager = SortieBattleTaskManager.GetMapManager();

            if (mapManager.GetNewOpenMapIDs() != null)
            {
                this._prodMapOpen = ProdMapOpen.Instantiate(PrefabFile.Load <ProdMapOpen>(PrefabFileInfos.MapOpen), mapManager.GetNewOpenAreaIDs(), mapManager.GetNewOpenMapIDs(), SortieMapTaskManager.GetSharedPlace(), SortieBattleTaskManager.GetKeyControl(), 120);
                this._prodMapOpen.Play(new Action(this.OnMapOpenFinished));
            }
            else
            {
                this.OnMapOpenFinished();
            }
            return(false);
        }
 protected override bool UnInit()
 {
     if (_prodMapOpen != null)
     {
         _prodMapOpen.Discard();
     }
     if (_prodMapPoint != null)
     {
         _prodMapPoint.Discard();
     }
     if (_prodMapClear != null)
     {
         _prodMapClear.Discard();
     }
     if (_prodThalassocracy != null)
     {
         _prodThalassocracy.Discard();
     }
     _prodMapOpen       = null;
     _prodMapClear      = null;
     _prodThalassocracy = null;
     _clsState.Clear();
     return(true);
 }