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

15 lines
367 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
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);
}
}
}