mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-06 13:35:54 +00:00
FSM Player movement
This commit is contained in:
parent
7d9db8cfb6
commit
c59a480ffd
10 changed files with 131 additions and 36 deletions
|
|
@ -5,8 +5,13 @@ namespace Cirno.Scripts.Components.FSM;
|
|||
|
||||
public partial class PlayerStateMachine : ActorStateMachine
|
||||
{
|
||||
[Export]
|
||||
public PlayerState InitialState { get; private set; }
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
base._Ready();
|
||||
|
||||
this.SetState((int)InitialState);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue