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