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

                if (CheckAnimatorInit())
                {
                    handAnimator.SetInteger(handAnimatorStateId, stateValue);
                }
            }
        }
Esempio n. 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);
                }
            }
        }