Пример #1
0
    GameObject getPrefabFromScreenZoneAndTileName(Tile.Zone screenZone, string tileName)
    {
        GameObject tilePrefab = Resources.Load <GameObject>("Prefabs/Environment/Tiles/"
                                                            + screenZone.ToString() +
                                                            "/" +
                                                            screenZone.ToString() + tileName) as GameObject;

        return(tilePrefab);
    }
Пример #2
0
    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);
    }
Пример #3
0
        // -- Overrides --
        public override String ToString()
        {
            // Print the number of points.
            String output = " - Room #" + id + "\n";

            output += zone.ToString();

            return(output);
        }