public void AttackPlayer(float value)
 {
     GameProxy.EditHpPlayer(value);
     HitpointsMax = Mathf.Max(0f, HitpointsMax - value);
     if (HitpointsMax <= 0)
     {
         GameProxy.EndGame();
     }
 }
示例#2
0
 private void OnDestroy()
 {
     gameProxy.EndGame();
 }