public void DoDamage(float damage) { life -= damage; healhBar.fillAmount = NormalizedLife(life); if (life <= 0) { gameObject.SetActive(false); whiteHealthBar.fillAmount = 0f; gameManager.GameOver(); // Destroy(gameObject); } }