void Death() { // Set the death flag so this function won't be called again. isDead = true; PlayerBehaviour.Death(); }