Esempio n. 1
0
 public void SetMyObjectTo(OnTileObject newObject)
 {
     foreach (Tile tile in this)
     {
         tile.SetMyObjectTo(newObject);
     }
 }
Esempio n. 2
0
 public bool IsFreeFor(OnTileObject onTileObject)
 {
     if (onTileObject.currentPosition.size != size)
     {
         Debug.LogError("This question should not be asked as this is not the right size of an OTP!");
         return(false);
     }
     foreach (Tile tile in this)
     {
         if (tile.GetMyObject <OnTileObject>() != onTileObject && tile.IsWalkable() == false)
         {
             return(false);
         }
     }
     return(true);
 }
Esempio n. 3
0
 public void SetMyObjectTo(OnTileObject anObject)
 {
     myObject = anObject;
 }