r2mods/ilspy_dump/ror2_csproj/EntityStates.BrotherMonster/UltEnterState.cs

27 lines
512 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
namespace EntityStates.BrotherMonster;
public class UltEnterState : BaseState
{
public static string soundString;
public static float duration;
public override void OnEnter()
{
base.OnEnter();
PlayCrossfade("Body", "UltEnter", "Ult.playbackRate", duration, 0.1f);
Util.PlaySound(soundString, base.gameObject);
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.isAuthority && base.fixedAge > duration)
{
outer.SetNextState(new UltChannelState());
}
}
}