Exemplo n.º 1
0
    protected override void Awake()
    {
        base.Awake();

        m_worldMap = GetComponent <WorldMap>();
        TileMapping.BuildFromJSON("tilesInfo");
    }
Exemplo n.º 2
0
    public static bool BuildFromJSON(string filename)
    {
        JSONNode rootNode = JSONUtils.ParseJSON(filename);

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

        return(false);
    }