mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 09:55:35 +00:00
16 lines
No EOL
367 B
C#
16 lines
No EOL
367 B
C#
using Cirno.Scripts.Enums;
|
|
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);
|
|
}
|
|
} |