Esempio n. 1
0
 /*
  *      Update
  *
  *      Parameters: Takes a float denoting the amount of physical damage taken
  *      Purpose: Executes the single healthBehavior to translate this damage to lost health
  */
 public void OnDamage(float damageAmount)
 {
     // The single health behavior belonging to this object is executed
     healthBehavior.SetDamage(damageAmount);
     healthBehavior.Act();
 }