private bool _initMapOpenProd(object data) { Observable.FromCoroutine((IObserver <bool> observer) => createMapOpen(observer)).Subscribe(delegate { _prodMapOpen.Play(_onMapOpenProdFinished); }); return(false); }
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); }
private bool InitMapOpen(object data) { MapManager mapManager = SortieBattleTaskManager.GetMapManager(); if (mapManager.GetNewOpenMapIDs() != null) { _prodMapOpen = ProdMapOpen.Instantiate(PrefabFile.Load <ProdMapOpen>(PrefabFileInfos.MapOpen), mapManager.GetNewOpenAreaIDs(), mapManager.GetNewOpenMapIDs(), SortieMapTaskManager.GetSharedPlace(), SortieBattleTaskManager.GetKeyControl(), 120); _prodMapOpen.Play(OnMapOpenFinished); } else { OnMapOpenFinished(); } return(false); }