void onLethalDamage() { animationController.PlayDeathAnimation(); SendMessage("OnDeath", SendMessageOptions.DontRequireReceiver); GameObject.Find("Gamestate").SendMessage("ChangeToBattleEnd"); }