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

28 lines
609 B
C#

using BehaviorDesigner.Runtime;
using BehaviorDesigner.Runtime.Tasks;
namespace MoleMole
{
[TaskCategory("Ability")]
public class GetAnimatorInteger : Action
{
public string AnimatorInteger;
public SharedInt SharedInteger;
private BaseMonoAnimatorEntity _animatorEntity;
public override void OnAwake()
{
BaseMonoEntity component = GetComponent<BaseMonoEntity>();
_animatorEntity = (BaseMonoAnimatorEntity)component;
}
public override TaskStatus OnUpdate()
{
SharedInteger.SetValue(_animatorEntity.GetLocomotionInteger(AnimatorInteger));
return TaskStatus.Success;
}
}
}