public void SetTransition(AnimatorStateTransition transition, AnimatorState sourceState, AnimatorState destinationState, AnimatorControllerLayer srcLayer, Animator previewObject) { this.m_RefSrcState = sourceState; this.m_RefDstState = destinationState; TransitionPreview.TransitionInfo transitionInfo = new TransitionPreview.TransitionInfo(); transitionInfo.Set(transition, sourceState, destinationState); if (this.MustResample(transitionInfo)) { this.ResampleTransition(transition, srcLayer.avatarMask, transitionInfo, previewObject); } }
public void SetTransition(AnimatorStateTransition transition, AnimatorState sourceState, AnimatorState destinationState, AnimatorControllerLayer srcLayer, Animator previewObject) { this.m_RefSrcState = sourceState; this.m_RefDstState = destinationState; TransitionPreview.TransitionInfo info = new TransitionPreview.TransitionInfo(); info.Set(transition, sourceState, destinationState); if (!this.MustResample(info)) return; this.ResampleTransition(transition, srcLayer.avatarMask, info, previewObject); }