void Update() { healthBar.SetHealth(player_current_health); adjustcurrenthealth(0); if (player_current_health <= 0) { Cursor.lockState = CursorLockMode.Confined; Cursor.visible = true; changescene("GameOver"); } }
void Update() { healthBar.SetHealth(player_current_health); adjustcurrenthealth(0); if (player_current_health <= 0) { Cursor.lockState = CursorLockMode.Confined; Cursor.visible = true; changescene("GameOver"); } }