コード例 #1
0
 //Made it so now this returns either a valid tile when given valid coordinates or null when not.
 public GameObject getTileAt(int xCoord, int zCoord)
 {
     if ((xCoord > tileList.GetLowerBound(0) && xCoord < tileList.GetUpperBound(0)) && (zCoord > tileList.GetLowerBound(1) && zCoord < tileList.GetUpperBound(1)))
     {
         return(tileList [xCoord, zCoord]);
     }
     return(null);
 }