public override void Die() { shooting.Die(); GameManager.allEnemyTargets.Remove(transform); base.Die(); }
protected override void Die() { GetComponent <Rigidbody> ().isKinematic = false; Destroy(GetComponent <Collider> ()); shooting.Die(); base.Die(); }
public override void Die() { shooting.Die(); // if (currentVisualEffect != null) { // RemoveEffect (); // } // notify spawner of death if (Spawner.spawners.ContainsKey("EnemySpawner")) { Spawner.spawners["EnemySpawner"].SpawnerObjectDespawn(); } if (EndlessProgressManager.instance != null) { EndlessProgressManager.instance.RecordEnemyDeath(); } base.Die(); }