void IsDead() { this.transform.position = spawnPoint; health = 5; lives--; healthba.SetHealth(health); healthba.SetLives(lives); if (lives == 0) { Time.timeScale = 0; // pour game over gameover.SetActive(true); } }