Ejemplo n.º 1
0
 /// <summary>
 /// This Ghost has found another one to fight with!
 /// </summary>
 /// <param name="other"> The other Ghost </param>
 public void OnInstantInteraction(IInstantInteractable other)
 {
     enemy = (other as GhostObject);
     if (enemy.MyColor == BeatColor)
     {
         WinFight();
     }
     else if (enemy.MyColor == LoseToColor)
     {
         LoseFight();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Call the owning player's method to bust a ghost that isn't
 /// this one out of the dungeon.
 /// </summary>
 /// <param name="friend"> The ghost being busted.null </param>
 protected virtual void EscapeFriend(GhostObject friend)
 {
     Owner.BustGhost(friend, true);
 }