r2mods/ilspy_dump/ror2_csproj/EntityStates/SleepState.cs

28 lines
499 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
namespace EntityStates;
public class SleepState : EntityState
{
public override void OnEnter()
{
base.OnEnter();
Animator modelAnimator = GetModelAnimator();
if ((bool)modelAnimator)
{
int layerIndex = modelAnimator.GetLayerIndex("Body");
modelAnimator.Play("Sleep", layerIndex, 0f);
}
}
public override void FixedUpdate()
{
base.FixedUpdate();
}
public override InterruptPriority GetMinimumInterruptPriority()
{
return InterruptPriority.Any;
}
}