r2mods/ilspy_dump/ror2_csproj/EntityStates.Bandit2.Weapon/BasePrepSidearmRevolverStat...

40 lines
847 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
using UnityEngine;
namespace EntityStates.Bandit2.Weapon;
public abstract class BasePrepSidearmRevolverState : BaseSidearmState
{
[SerializeField]
public string enterSoundString;
private Animator animator;
private static int MainToSideStateHash = Animator.StringToHash("MainToSide");
private static int MainToSideParamHash = Animator.StringToHash("MainToSide.playbackRate");
public override void OnEnter()
{
base.OnEnter();
PlayAnimation("Gesture, Additive", MainToSideStateHash, MainToSideParamHash, duration);
Util.PlaySound(enterSoundString, base.gameObject);
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.fixedAge > duration)
{
outer.SetNextState(GetNextState());
}
}
public override void OnExit()
{
base.OnExit();
}
protected abstract EntityState GetNextState();
}