Beispiel #1
0
 public void HurtPlayer()
 {
     if (hasHurtPlayer)
     {
         return;
     }
     if (!canHurtPlayer)
     {
         return;
     }
     hasHurtPlayer = true;
     userInterfaceManager.AddLife(-1);
     DestroySelf();
 }