r2mods/ilspy_dump/ror2_csproj/EntityStates.VoidJailer.Weapon/ExitCapture.cs

39 lines
811 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
namespace EntityStates.VoidJailer.Weapon;
public class ExitCapture : BaseState
{
public static string animationLayerName;
public static string animationStateName;
public static string animationPlaybackRateName;
public static float duration;
public static string enterSoundString;
public override void OnEnter()
{
base.OnEnter();
duration /= attackSpeedStat;
Util.PlaySound(enterSoundString, base.gameObject);
PlayAnimation(animationLayerName, animationStateName, animationPlaybackRateName, duration);
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.isAuthority && base.fixedAge >= duration)
{
outer.SetNextStateToMain();
}
}
public override InterruptPriority GetMinimumInterruptPriority()
{
return InterruptPriority.PrioritySkill;
}
}