Пример #1
0
    protected override void Awake()
    {
        base.Awake();

        m_worldMap = GetComponent <WorldMap>();
        TileMapping.BuildFromJSON("tilesInfo");
    }
Пример #2
0
    public static bool BuildFromJSON(string filename)
    {
        JSONNode rootNode = JSONUtils.ParseJSON(filename);

        if (rootNode != null)
        {
            return(TileMapping.BuildFromJSON(rootNode));
        }

        return(false);
    }