public void TakeDamage(Vector3 impactPoint, int playerNumber, int amount = 1) { _currentHealth -= amount; Instantiate(_hitPrefab, impactPoint, transform.rotation); if (_currentHealth <= 0) { _dieAudio.Play(); Instantiate(_hitDie, impactPoint, transform.rotation); gameObject.SetActive(false); ScoreSystem.Add(_pointValue, playerNumber); } }