예제 #1
0
 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();
 }