public void Dead() { // TODO: make sure the bird is restored to its idle state when the start // page loads // play sound, update score, etc //canPlayAudio = false; isDead = true; rigidbod.simulated = false; rigidbod.velocity = Vector2.zero; //anim.SetTrigger("Idle"); //anim.speed = 0; //health.UpdateHealth(100f, this); //restore the health for next time audioController.AudioOnDeath(); OnPlayerDied(""); }