Beispiel #1
0
 public void setNodesInRoom()
 {
     foreach (GameObject g in WorldBuilder.me.worldTiles)
     {
         if (g == null)
         {
         }
         else
         {
             WorldTile wt = g.GetComponent <WorldTile> ();
             if (wt.walkable == true)
             {
                 RoomScript r = getRoomObjectIsIn(g);
                 if (r == null)
                 {
                 }
                 else
                 {
                     r.addNodesToRoom(g);
                 }
             }
         }
     }
 }