r2mods/ilspy_dump/ror2_csproj/EntityStates.Loader/BeginOvercharge.cs

17 lines
281 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
namespace EntityStates.Loader;
public class BeginOvercharge : BaseState
{
public override void OnEnter()
{
base.OnEnter();
if (base.isAuthority)
{
GetComponent<LoaderStaticChargeComponent>().ConsumeChargeAuthority();
}
outer.SetNextStateToMain();
}
}