r2mods/ilspy_dump/ror2_csproj/EntityStates/TestState1.cs

25 lines
434 B
C#
Raw Normal View History

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