mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
15 lines
No EOL
340 B
C#
15 lines
No EOL
340 B
C#
using Godot;
|
|
|
|
namespace Cirno.Scripts.Components.FSM;
|
|
|
|
public abstract partial class EnemyFSMState : State
|
|
{
|
|
[Export]
|
|
public EnemyState State { get; private set; }
|
|
public override int StateId => (int)State;
|
|
|
|
protected void ChangeState(EnemyState newState)
|
|
{
|
|
_stateMachine.SetState((int)newState);
|
|
}
|
|
} |