示例#1
0
 internal void NotifyReachable(bool canReach)
 {
     if (canReach)
     {
         _skeleton.BlendToAnimation();
     }
     else
     {
         _skeleton.BlendToSkeleton();
     }
 }
示例#2
0
        public void SetAnimationState(int stateValue)
        {
            if (handSkeleton != null)
            {
                if (handSkeleton.isBlending == false)
                {
                    handSkeleton.BlendToAnimation();
                }

                if (CheckAnimatorInit())
                {
                    handAnimator.SetInteger(handAnimatorStateId, stateValue);
                }
            }
        }
示例#3
0
        /*
         * rest, sphere, stick, pinch
         */
        public void SetAnimationState(AnimationState stateValue)
        {
            if (handSkeleton != null)
            {
                //makes the skeleton fully animated to pose (no vr fingers on buttons)
                if (handSkeleton.isBlending == false)
                {
                    handSkeleton.BlendToAnimation();
                }

                if (CheckAnimatorInit())
                {
                    handAnimator.SetInteger(handAnimatorStateId, (int)stateValue);
                }
            }
        }