42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
using UnityEngine;
|
|
using UHFPS.Scriptable;
|
|
|
|
namespace UHFPS.Runtime.States
|
|
{
|
|
public class #SCRIPTNAME# : PlayerStateAsset
|
|
{
|
|
public override FSMPlayerState InitState(PlayerStateMachine machine, PlayerStatesGroup group)
|
|
{
|
|
return new #SCRIPTNAME#_State(machine);
|
|
}
|
|
|
|
public override string GetStateKey() => "Your state key";
|
|
|
|
public override string ToString() => "Your state name";
|
|
|
|
public class #SCRIPTNAME#_State : FSMPlayerState
|
|
{
|
|
public #SCRIPTNAME#_State(PlayerStateMachine machine) : base(machine) { }
|
|
|
|
public override void OnStateEnter()
|
|
{
|
|
#NOTRIM#
|
|
}
|
|
|
|
public override void OnStateExit()
|
|
{
|
|
#NOTRIM#
|
|
}
|
|
|
|
public override void OnStateUpdate()
|
|
{
|
|
#NOTRIM#
|
|
}
|
|
|
|
public override Transition[] OnGetTransitions()
|
|
{
|
|
return new Transition[0];
|
|
}
|
|
}
|
|
}
|
|
} |