r2mods/ilspy_dump/ror2_csproj/EntityStates.Merc/WhirlwindEntry.cs

15 lines
367 B
C#

namespace EntityStates.Merc;
public class WhirlwindEntry : BaseState
{
public override void OnEnter()
{
base.OnEnter();
if (base.isAuthority)
{
EntityState nextState = (((bool)base.characterMotor && base.characterMotor.isGrounded) ? ((WhirlwindBase)new WhirlwindGround()) : ((WhirlwindBase)new WhirlwindAir()));
outer.SetNextState(nextState);
}
}
}