void Destroy() { if (distance < ExplosionRadius) { GameManagerMini.DamagePlayer(); } Destroy(gameObject); }
public void TakeDamage() { Health--; if (Health <= 0) { Destroy(gameObject); GameManagerMini.RoundEnd(); } }