public void Play(Animation animation) { if (this.animation == animation) { return; } if (animation.restartOnAnimationChange) { frame = 0; //SuperController.LogMessage("restarting"); } playStartTime = Time.time; this.animation = animation; bvh = animation.bvh; frameTime = bvh.frameTime; CreateControllerMap(); rootMotion = new Vector3(); playing = true; loopPlay = animation.loop; }
public void Load(string path) { this.path = path; bvh = new BvhFile(path); }