コード例 #1
0
 // Add this Gridobject to the occupant list on the target Gridtile
 public virtual void AddToTile(GridTile gridTile)
 {
     // If the tile exists
     if (gridTile != null)
     {
         // And it is not already occupied
         if (!gridTile.IsTileOccupied())
         {
             m_CurrentGridTile.AddOccupyingGridObject(this);
         }
     }
 }