r2mods/ilspy_dump/ror2_csproj/EntityStates.Bandit2/ThrowSmokebomb.cs

33 lines
733 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
namespace EntityStates.Bandit2;
public class ThrowSmokebomb : BaseState
{
public static float duration;
private static int throwSmokeBombStateHash = Animator.StringToHash("ThrowSmokebomb");
private static int throwSmokeBombParamHash = Animator.StringToHash("ThrowSmokebomb.playbackRate");
public override void OnEnter()
{
base.OnEnter();
PlayAnimation("Gesture, Additive", throwSmokeBombStateHash, throwSmokeBombParamHash, duration);
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.fixedAge > duration)
{
outer.SetNextState(new StealthMode());
}
}
public override InterruptPriority GetMinimumInterruptPriority()
{
return InterruptPriority.PrioritySkill;
}
}