r2mods/ilspy_dump/ror2_csproj/EntityStates.Barrel/Closing.cs

22 lines
377 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
namespace EntityStates.Barrel;
public class Closing : EntityState
{
public static float duration = 1f;
public override void OnEnter()
{
base.OnEnter();
PlayAnimation("Body", "Closing", "Closing.playbackRate", duration);
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.fixedAge >= duration)
{
outer.SetNextState(new Closed());
}
}
}