r2mods/ilspy_dump/ror2_csproj/EntityStates/GenericCharacterPod.cs

31 lines
507 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
namespace EntityStates;
public class GenericCharacterPod : BaseState
{
public override void OnEnter()
{
base.OnEnter();
if ((bool)base.characterMotor)
{
base.characterMotor.enabled = false;
}
if ((bool)base.rigidbodyMotor)
{
base.rigidbodyMotor.enabled = false;
}
}
public override void OnExit()
{
if ((bool)base.characterMotor)
{
base.characterMotor.enabled = true;
}
if ((bool)base.rigidbodyMotor)
{
base.rigidbodyMotor.enabled = true;
}
base.OnExit();
}
}