public void Update() { healthslider.BarHealth(health.value); if (health.value <= 0) { transform.position = deathSpawn.position; transform.rotation = deathSpawn.rotation; health.value = 5; controller.enabled = true; } }