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