internal void NotifyReachable(bool canReach) { if (canReach) { _skeleton.BlendToAnimation(); } else { _skeleton.BlendToSkeleton(); } }
public void SetAnimationState(int stateValue) { if (handSkeleton != null) { if (handSkeleton.isBlending == false) { handSkeleton.BlendToAnimation(); } if (CheckAnimatorInit()) { handAnimator.SetInteger(handAnimatorStateId, stateValue); } } }
/* * 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); } } }