mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 16:05:53 +00:00
Migrated player state machine
This commit is contained in:
parent
bb3cdefaa2
commit
9c3f22760b
19 changed files with 108 additions and 69 deletions
|
|
@ -4,8 +4,10 @@ using Godot;
|
|||
|
||||
namespace Cirno.Scripts.Components.FSM.Player;
|
||||
|
||||
public partial class Init : PlayerFSMState
|
||||
public partial class Init : PlayerStateBase
|
||||
{
|
||||
public override PlayerState StateId => PlayerState.Init;
|
||||
|
||||
[Export]
|
||||
private PlayerAnimationProvider _animationProvider;
|
||||
public override void EnterState()
|
||||
|
|
@ -32,6 +34,6 @@ public partial class Init : PlayerFSMState
|
|||
private async Task AutoSwitchToStart()
|
||||
{
|
||||
await Task.Delay(500);
|
||||
_stateMachine.SetState((int)PlayerState.Active);
|
||||
StateMachine.SetState(PlayerState.Active);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue