r2mods/ilspy_dump/ror2_csproj/EntityStates.AncientWispMon.../FireBomb.cs

36 lines
765 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
namespace EntityStates.AncientWispMonster;
public class FireBomb : BaseState
{
public static float baseDuration = 4f;
private float duration;
private static int fireBombHash = Animator.StringToHash("FireBomb");
private static int fireBombParamHash = Animator.StringToHash("FireBomb.playbackRate");
public override void OnEnter()
{
base.OnEnter();
duration = baseDuration / attackSpeedStat;
PlayAnimation("Gesture", fireBombHash, fireBombParamHash, duration);
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.fixedAge >= duration && base.isAuthority)
{
outer.SetNextStateToMain();
}
}
public override InterruptPriority GetMinimumInterruptPriority()
{
return InterruptPriority.Frozen;
}
}