예제 #1
0
        private IEnumerator CreateShelling(IObserver <bool> observer)
        {
            _prodSupportShelling = ProdSupportShelling.Instantiate(Resources.Load <ProdSupportShelling>("Prefabs/Battle/Production/SupportingFire/ProdSupportShelling"), _clsShelling, BattleTaskManager.GetBattleCameras().cutInCamera.transform);
            yield return(new WaitForEndOfFrame());

            _prodSupportShelling.CreateHpGauge(FleetType.Enemy);
            yield return(new WaitForEndOfFrame());

            observer.OnNext(value: true);
            observer.OnCompleted();
        }
예제 #2
0
 protected override bool UnInit()
 {
     _clsShien = null;
     _clsState.Clear();
     if (_prodSupportCutIn != null)
     {
         _prodSupportCutIn.gameObject.Discard();
     }
     _prodSupportCutIn = null;
     if (_prodSupportShelling != null)
     {
         _prodSupportShelling.gameObject.Discard();
     }
     _prodSupportShelling = null;
     if (_prodSupportTorpedoP1 != null && _prodSupportTorpedoP1.transform != null)
     {
         Object.Destroy(_prodSupportTorpedoP1.transform.gameObject);
     }
     _prodSupportTorpedoP1 = null;
     if (_prodSupportTorpedoP2 != null && _prodSupportTorpedoP2.transform != null)
     {
         Object.Destroy(_prodSupportTorpedoP2.transform.gameObject);
     }
     _prodSupportTorpedoP2 = null;
     if (_prodSupportAerialPhase1 != null)
     {
         _prodSupportAerialPhase1.gameObject.Discard();
     }
     _prodSupportAerialPhase1 = null;
     if (_prodSupportAerialPhase2 != null)
     {
         _prodSupportAerialPhase2.gameObject.Discard();
     }
     _prodSupportAerialPhase2 = null;
     return(true);
 }