예제 #1
0
    private void Parse()
    {
        string fp = System.IO.Path.Combine(Application.streamingAssetsPath, "walk_loop.bvh");

        Debug.Log(fp);

        _bp.GetTokenInfo(fp);
        if (_bp.Parse(_bvh) == 0)
        {
            _bvh.Cal();
        }
    }
예제 #2
0
    public void Parse(string info)
    {
        _bvh        = new Bvh();
        _bp         = new BvhParser();
        _frameIndex = 0;
        _pathIndex  = 0;

        _bp.GetTokenInfo(info);
        if (_bp.Parse(_bvh) == 0)
        {
            _bvh.Cal();
            return(0);
        }
        return(-1);
    }