Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public void Load(string path)
 {
     this.path = path;
     bvh       = new BvhFile(path);
 }