Example #1
0
 /// <summary>
 /// Called when the activeHero is hit by an enemy.
 /// </summary>
 /// <param name="hitBy">
 /// The enemy who hit the activeHero. This is null if the activeHero was not hit by an
 /// enemy, such as when a activeHero hits or is hit by a hazard.
 /// </param>
 private void OnHeroHit(GameCharacter hitBy)
 {
     ActiveHero.OnHit(hitBy);
 }