void Update() { if (isDead) { deathTimer += Time.deltaTime; if (deathTimer > deathLimit) { Game.endGame(); } } }