Exemplo n.º 1
0
        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);
 }
Exemplo n.º 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);
        }