public void Dispose() { if (this._clsState != null) { this._clsState.Clear(); } Mem.Del <StatementMachine>(ref this._clsState); if (this._prodTorpedoCutIn != null) { this._prodTorpedoCutIn.get_gameObject().Discard(); } this._prodTorpedoCutIn = null; if (this._prodTorpedoSalvoPhase2 != null) { Object.Destroy(this._prodTorpedoSalvoPhase2.transform.get_gameObject()); } this._prodTorpedoSalvoPhase2 = null; if (this._prodTorpedoSalvoPhase3 != null) { Object.Destroy(this._prodTorpedoSalvoPhase3.transform.get_gameObject()); } this._prodTorpedoSalvoPhase3 = null; if (this.prefabProdTorpedoStraight != null) { Object.Destroy(this.prefabProdTorpedoStraight.get_gameObject()); } this.prefabProdTorpedoStraight = null; if (this._clsRaigeki != null) { this._clsRaigeki = null; } this.TorpedoParticle = null; }
protected override bool UnInit() { if (this._prodTorpedoCutIn != null) { this._prodTorpedoCutIn.get_gameObject().Discard(); } this._prodTorpedoCutIn = null; if (this._prodTorpedoSalvoPhase2 != null) { Object.Destroy(this._prodTorpedoSalvoPhase2.transform.get_gameObject()); } this._prodTorpedoSalvoPhase2 = null; if (this._prodTorpedoSalvoPhase3 != null) { Object.Destroy(this._prodTorpedoSalvoPhase3.transform.get_gameObject()); } this._prodTorpedoSalvoPhase3 = null; if (this.prefabProdTorpedoStraight != null) { Object.Destroy(this.prefabProdTorpedoStraight.get_gameObject()); } this.prefabProdTorpedoStraight = null; base.UnInit(); if (this._clsRaigeki != null) { this._clsRaigeki = null; } this.TorpedoParticle = null; return(true); }
protected override bool UnInit() { if (_prodTorpedoCutIn != null) { _prodTorpedoCutIn.gameObject.Discard(); } _prodTorpedoCutIn = null; if (_prodTorpedoSalvoPhase2 != null) { UnityEngine.Object.Destroy(_prodTorpedoSalvoPhase2.transform.gameObject); } _prodTorpedoSalvoPhase2 = null; if (_prodTorpedoSalvoPhase3 != null) { UnityEngine.Object.Destroy(_prodTorpedoSalvoPhase3.transform.gameObject); } _prodTorpedoSalvoPhase3 = null; base.UnInit(); if (_clsRaigeki != null) { _clsRaigeki = null; } TorpedoParticle = null; return(true); }
public bool Init() { _torpedoWake = null; _torpedoWakeD = null; _vecProtectTorpedo = new Vector3[6]; _listTorpedoWake = new List <PSTorpedoWake>(); return(true); }
public void Play(Action onFinished) { this._isPlaying = true; this._actOnFinished = onFinished; BattleTaskManager.GetBattleCameras().enemyFieldCamera.cullingMask = BattleTaskManager.GetBattleCameras().GetDefaultLayers(); this.TorpedoParticle = ParticleFile.Load <PSTorpedoWake>(ParticleFileInfos.PARTICLE_FILE_INFOS_ID_ST); this._clsState.AddState(new StatementMachine.StatementMachineInitialize(this._initTorpedoCutInNInjection), new StatementMachine.StatementMachineUpdate(this._updateTorpedoCutInNInjection)); }
public void AddInstantiates(Transform parent, Vector3 injectionVec, Vector3 targetVec, bool isFull, int attackerIndex, float time, bool isDet, bool isMiss) { if (_torpedoWake == null) { _torpedoWake = ParticleFile.Load <PSTorpedoWake>(ParticleFileInfos.PARTICLE_FILE_INFOS_ID_ST); } if (_torpedoWakeD == null) { _torpedoWakeD = ParticleFile.Load <PSTorpedoWake>(ParticleFileInfos.BattlePSTorpedowakeD); } _listTorpedoWake.Add(PSTorpedoWake.Instantiate((!isFull) ? _torpedoWake : _torpedoWakeD, parent, injectionVec, targetVec, attackerIndex, time, isDet, isMiss)); }
protected override bool Init() { _clsRaigeki = BattleTaskManager.GetBattleManager().GetKaimakuData(); if (_clsRaigeki == null) { EndPhase(BattleUtils.NextPhase(BattlePhase.OpeningTorpedoSalvo)); } else { _clsState = new StatementMachine(); _clsState.AddState(_initTorpedoCutInInjection, _updateTorpedoCutInInjection); TorpedoParticle = ParticleFile.Load <PSTorpedoWake>(ParticleFileInfos.PARTICLE_FILE_INFOS_ID_ST); } return(true); }
protected override bool Init() { base.Init(); this._clsRaigeki = BattleTaskManager.GetBattleManager().GetRaigekiData(); if (this._clsRaigeki == null) { this.EndPhase(BattleUtils.NextPhase(BattlePhase.TorpedoSalvo)); } else { this._clsState = new StatementMachine(); BattleTaskManager.GetBattleCameras().enemyFieldCamera.cullingMask = BattleTaskManager.GetBattleCameras().GetDefaultLayers(); this.TorpedoParticle = ParticleFile.Load <PSTorpedoWake>(ParticleFileInfos.PARTICLE_FILE_INFOS_ID_ST); this._clsState.AddState(new StatementMachine.StatementMachineInitialize(this._initTorpedoCutInNInjection), new StatementMachine.StatementMachineUpdate(this._updateTorpedoCutInNInjection)); } return(true); }
public void InjectionAll() { using (List <PSTorpedoWake> .Enumerator enumerator = this._listTorpedoWake.GetEnumerator()) { while (enumerator.MoveNext()) { PSTorpedoWake current = enumerator.get_Current(); current.Injection(iTween.EaseType.easeInCubic, false, false, delegate { }); } } if (this._listTorpedoWake.get_Count() > 0) { SoundUtils.PlaySE(SEFIleInfos.BattleTorpedo); } }
public void Dispose() { if (this._listTorpedoWake != null) { using (List <PSTorpedoWake> .Enumerator enumerator = this._listTorpedoWake.GetEnumerator()) { while (enumerator.MoveNext()) { PSTorpedoWake current = enumerator.get_Current(); if (current != null) { Object.Destroy(current); } } } this._listTorpedoWake.Clear(); } this._listTorpedoWake = null; }
private void _onSupportFleetAdmissionFinished() { if (_clsShien is ShienModel_Rai) { _clsTorpedo = (ShienModel_Rai)_clsShien; TorpedoParticle = ParticleFile.Load <PSTorpedoWake>(ParticleFileInfos.BattlePSTorpedowakeD); _clsState.AddState(_initSupportTorpedoPhase1, _updateSupportTorpedoPhase1); } else if (_clsShien is ShienModel_Hou) { _clsShelling = (ShienModel_Hou)_clsShien; _clsState.AddState(_initSupportShelling, _updateSupportShelling); } else if (_clsShien is ShienModel_Air) { _clsAerial = (ShienModel_Air)_clsShien; _clsState.AddState(_initSupportAerialPhase1, _updateSupportAerialPhase1); } }