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

24 lines
474 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2.Projectile;
namespace EntityStates.Engi.MineDeployer;
public class WaitForStick : BaseMineDeployerState
{
private ProjectileStickOnImpact projectileStickOnImpact;
public override void OnEnter()
{
base.OnEnter();
projectileStickOnImpact = GetComponent<ProjectileStickOnImpact>();
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.isAuthority && projectileStickOnImpact.stuck)
{
outer.SetNextState(new FireMine());
}
}
}