r2mods/ilspy_dump/ror2_csproj/EntityStates.Chef/RolyPolyWeaponBlockingState.cs

27 lines
520 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
namespace EntityStates.Chef;
public class RolyPolyWeaponBlockingState : BaseSkillState
{
private ChefController chefController;
public override void OnEnter()
{
base.OnEnter();
chefController = base.characterBody.GetComponent<ChefController>();
}
public override void Update()
{
base.Update();
if (base.isAuthority && !chefController.blockOtherSkills)
{
outer.SetNextStateToMain();
}
}
public override InterruptPriority GetMinimumInterruptPriority()
{
return InterruptPriority.Frozen;
}
}