//public void PickUpAmmo() //{ // if (_currentAmmo < maxAmmo) // { // _currentAmmo++; // } //} public void TakeDamage(float damage, GameObject instigator) { if (currentHealth - damage > 0) { currentHealth -= damage; } else { currentHealth = 0f; Kill(); } UiHandler.TakeDamage(); }