Files
BH3/Assets/Scripts/Assembly-CSharp/MoleMole/StateRebindAttachPoint.cs
2025-08-13 09:26:42 +08:00

20 lines
523 B
C#

using UnityEngine;
namespace MoleMole
{
public class StateRebindAttachPoint : StateMachineBehaviour
{
[Header("Rebind AttachPoint to another attach point")]
public string AttachPoint;
[Header("Other Attach Point")]
public string OtherAttachPoint;
public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
{
BaseMonoAnimatorEntity component = animator.GetComponent<BaseMonoAnimatorEntity>();
component.RebindAttachPoint(AttachPoint, OtherAttachPoint);
}
}
}