r2mods/ilspy_dump/ror2_csproj/EntityStates.CaptainSupplyDrop/DeployState.cs

24 lines
403 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
namespace EntityStates.CaptainSupplyDrop;
public class DeployState : BaseCaptainSupplyDropState
{
public static float baseDuration;
private float duration;
public override void OnEnter()
{
base.OnEnter();
duration = baseDuration;
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.isAuthority && base.fixedAge >= duration)
{
outer.SetNextStateToMain();
}
}
}