GameObject getPrefabFromScreenZoneAndTileName(Tile.Zone screenZone, string tileName) { GameObject tilePrefab = Resources.Load <GameObject>("Prefabs/Environment/Tiles/" + screenZone.ToString() + "/" + screenZone.ToString() + tileName) as GameObject; return(tilePrefab); }
GameObject getPrefabFromTileZoneAndTileName(Tile.Zone tileZone, Tile.Type type) { GameObject tilePrefab = Resources.Load <GameObject>("Prefabs/Environment/Tiles/" + tileZone.ToString() + "/" + tileZone.ToString() + "_" + type) as GameObject; return(tilePrefab); }
// -- Overrides -- public override String ToString() { // Print the number of points. String output = " - Room #" + id + "\n"; output += zone.ToString(); return(output); }