r2mods/ilspy_dump/ror2_csproj/EntityStates.Engi.SpiderMine/WaitForStick.cs

26 lines
496 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
namespace EntityStates.Engi.SpiderMine;
public class WaitForStick : BaseSpiderMineState
{
private static int IdleStateHash = Animator.StringToHash("Idle");
protected override bool shouldStick => true;
public override void OnEnter()
{
base.OnEnter();
PlayAnimation("Base", IdleStateHash);
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.isAuthority && base.projectileStickOnImpact.stuck)
{
outer.SetNextState(new Burrow());
}
}
}