private IEnumerator OnTriggerStay(Collider other) { if (other.tag == "Player" && !_isDamaging) { _isDamaging = true; if (_playerHealth != null) { _playerHealth.Damage(10); } yield return new WaitForSeconds(1.5f); _isDamaging = false; } }