예제 #1
0
파일: Enemy.cs 프로젝트: deschafer/Sisyphus
 /*
  *      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();
 }