private void OnTriggerEnter(Collider other) { if (other.CompareTag("Boundary") || other.CompareTag("Enemy")) { return; } if (other.CompareTag("LeftWall")) { WaveService.Side = GoSide.Left; return; } if (other.CompareTag("RightWall")) { WaveService.Side = GoSide.Right; return; } if (!other.CompareTag("PlayerBolt")) { return; } OnDeathEnemy?.Invoke(other); }
private void NotifyOnEnemyDeath() { OnDeathEnemy?.Invoke(this); }