private IEnumerator Load()
        {
            readyToPlay = false;

            yield return(new WaitForSeconds(1.0f));

            BVH winterdustBvh = new BVH(inputBVHFile, -10, false, 0, -1, false, true, true, true, null);

            yield return(new WaitForEndOfFrame());

            nBones = winterdustBvh.boneCount;

            bones = winterdustBvh.allBones;

            nFramesCount      = winterdustBvh.frameCount;
            animationDuration = winterdustBvh.getDurationSec();


            //BVH newScaled = winterdustBvh.scale(100.0f);
            //newScaled.writeToDisk("D:\\Download\\Test\\WinterdustTest\\RescaledTest.bvh", false, true);


            yield return(new WaitForSeconds(1.0f));

            loadedClip = winterdustBvh.makeAnimationClip();

            yield return(new WaitForEndOfFrame());

            yield return(new WaitForSeconds(1.0f));

            loadedClip.legacy = true;

            //anim = targetAvatar.gameObject.GetComponent<Animation>();

            anim.AddClip(loadedClip, loadedClip.name);
            anim.clip = loadedClip;
            anim.playAutomatically = false;


#if UNITY_EDITOR
            //AssetDatabase.CreateAsset(newClip, "Assets/" + newClip + ".anim");
            // AssetDatabase.SaveAssets();
#endif

            readyToPlay = true;

            Debug.Log("<color=cyan>" + "READY TO PLAY" + "</color>");
        }