Exemplo n.º 1
0
        private IEnumerator createMapClear(IObserver <bool> observer)
        {
            _prodMapClear = ProdMapClear.Instantiate(PrefabFile.Load <ProdMapClear>(PrefabFileInfos.MapClear), BattleTaskManager.GetBattleCameras().cutInCamera.transform, _clsInput, BattleTaskManager.GetBattleManager().Ships_f[0], 120);
            yield return(new WaitForEndOfFrame());

            observer.OnNext(value: true);
            observer.OnCompleted();
        }
 private bool _initMapClearProd(object data)
 {
     _prodMapClear = ProdMapClear.Instantiate(PrefabFile.Load <ProdMapClear>(PrefabFileInfos.MapClear), BattleCutManager.GetSharedPlase(), _clsInput, BattleCutManager.GetBattleManager().Ships_f[0], 120);
     _prodMapClear.Play(_onMapClearProdFinished);
     return(false);
 }