Ejemplo n.º 1
0
 public void RemoveMyOccupant(BoardOccupant _bo)
 {
     if (MyOccupant != _bo)
     {
         throw new UnityException("Oops! We're trying to remove a " + _bo.GetType() + " from a space that doesn't own it! " + Col + " " + Row + ".");
     }
     MyOccupant = null;
 }
Ejemplo n.º 2
0
 public void SetMyOccupant(BoardOccupant _bo)
 {
     if (MyOccupant != null)
     {
         throw new UnityException("Oops! Trying to set a Space's Occupant, but that Space already has an Occupant! original: " + MyOccupant.GetType() + ", new: " + _bo.GetType().ToString() + ". " + Col + ", " + Row);
     }
     MyOccupant = _bo;
 }