Ejemplo 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();
        }
Ejemplo n.º 2
0
 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);
 }
 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);
 }