Files
Nathaniel Cosford 062dfab2cd Patched
2025-05-30 01:04:40 +09:30

10 lines
272 B
C#

using UnityEngine;
public class AnimationResetRigWeightState : StateMachineBehaviour
{
public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
{
animator.GetComponent<RigWeightOverTime>()?.SetWeight(0);
}
}