Esempio n. 1
0
 // Called fromt he world when a damage event occurs, to notify the player
 public void NotifiedDamageEvent(float dmgAmount, Pawn victim, Pawn instigator)
 {
     if (victim == this)
     {
         ui.AddKickerNumber(victim, (int)dmgAmount, UI_PlayerBase.KickerType.Aggresive);
     }
     else
     {
         ui.AddKickerNumber(victim, (int)dmgAmount, UI_PlayerBase.KickerType.Neutral);
     }
 }