39 lines
811 B
C#
39 lines
811 B
C#
|
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;
|
||
|
}
|
||
|
}
|