r2mods/ilspy_dump/ror2_csproj/EntityStates.VoidRaidCrab.Leg/Idle.cs

14 lines
289 B
C#

namespace EntityStates.VoidRaidCrab.Leg;
public class Idle : BaseLegState
{
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.legController.mainBodyHasEffectiveAuthority && !base.legController.DoesJointExist())
{
outer.SetNextState(new JointBroken());
}
}
}