17 lines
281 B
C#
17 lines
281 B
C#
|
using RoR2;
|
||
|
|
||
|
namespace EntityStates.Loader;
|
||
|
|
||
|
public class BeginOvercharge : BaseState
|
||
|
{
|
||
|
public override void OnEnter()
|
||
|
{
|
||
|
base.OnEnter();
|
||
|
if (base.isAuthority)
|
||
|
{
|
||
|
GetComponent<LoaderStaticChargeComponent>().ConsumeChargeAuthority();
|
||
|
}
|
||
|
outer.SetNextStateToMain();
|
||
|
}
|
||
|
}
|