public override void AfterFinishedEventProcessed() { SpawnFiringProjectileEvent.Get().UnRegisterSpawnFiringProjectileEventListener(this.OnProjectileLaunched); if (this.cor != null) { Coroutiner.Instance.StopCoroutine(this.cor); this.cor = null; } }
public ProjectileDeflectionTestScenarioAction(CoreInteractiveObject EnemyObject, PlayerInteractiveObject PlayerInteractiveObject) { this.EnemyObject = EnemyObject; this._playerInteractiveObject = PlayerInteractiveObject; SpawnFiringProjectileEvent.Get().RegisterSpawnFiringProjectileEventListener(this.OnProjectileLaunched); }