Beispiel #1
0
 public void Damaged(float damage)
 {
     if (Health > 0)
     {
         state.Damaged(damage);
         if (Health < 0)
         {
             PlayerDeathEvent?.Invoke();
         }
     }
 }