private void OnParticleCollision(GameObject other) { Health -= ParticleDamage; if (Health <= 0) { OnEnemyDie?.Invoke(Reward); Destroy(gameObject); } }
private void OnEnemyDieHandler(int score) { OnEnemyDie?.Invoke(score); }
internal static void KillEnemy(EnemyBehaviour enemyBehaviour) { OnEnemyDie?.Invoke(enemyBehaviour); }
private void Enemy_OnDie(Enemy enemy) { enemySoundController.Scream(); OnEnemyDie?.Invoke(enemy); }
protected override void OnDie() { base.OnDie(); OnEnemyDie?.Invoke(this, new DieArgs(this)); }
public void CallOnEnemyDie() { OnEnemyDie?.Invoke(); }