r2mods/ilspy_dump/ror2_csproj/EntityStates/TestState2.cs

25 lines
434 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
namespace EntityStates;
public class TestState2 : EntityState
{
public override void OnEnter()
{
Debug.LogFormat("{0} Entering TestState2.", base.gameObject);
}
public override void OnExit()
{
Debug.LogFormat("{0} Exiting TestState2.", base.gameObject);
}
public override void FixedUpdate()
{
if (base.isAuthority && Input.GetButton("Fire2"))
{
outer.SetNextState(new TestState1());
}
}
}