Example #1
0
 /// <summary>
 /// Called when the activeHero is killed.
 /// </summary>
 /// <param name="killedBy">
 /// The enemy who killed the activeHero. This is null if the activeHero was not killed by an
 /// enemy, such as when a activeHero falls into a hole.
 /// </param>
 private void OnHeroKilled(Enemy killedBy)
 {
     ActiveHero.OnKilled(killedBy);
 }