示例#1
0
    private bool ParseJSONDemo()
    {
        PathReader pr;

        try
        {
            pr = new PathReader(Path.Combine(Application.dataPath, JSONFileName));
        }
        catch (Exception e) {
            Debug.Log(e.Message);
            return(false);
        }
        pr.setPathId(2);
        pr.printBookWithLocation(pr.getBookWithLocation(2));
        return(true);
    }