24 lines
403 B
C#
24 lines
403 B
C#
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();
|
|
}
|
|
}
|
|
}
|