r2mods/ilspy_dump/ror2_csproj/EntityStates.Engi.EngiMissi.../Startup.cs

24 lines
429 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
namespace EntityStates.Engi.EngiMissilePainter;
public class Startup : BaseEngiMissilePainterState
{
public static float baseDuration;
private float duration;
public override void OnEnter()
{
base.OnEnter();
duration = baseDuration / attackSpeedStat;
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.isAuthority && duration <= base.fixedAge)
{
outer.SetNextState(new Paint());
}
}
}