mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-14 16:23:47 +00:00
Migrated player state machine
This commit is contained in:
parent
bb3cdefaa2
commit
9c3f22760b
19 changed files with 108 additions and 69 deletions
|
|
@ -2,8 +2,9 @@
|
|||
|
||||
namespace Cirno.Scripts.Components.FSM.Player;
|
||||
|
||||
public partial class Cutscene : PlayerFSMState
|
||||
public partial class Cutscene : PlayerStateBase
|
||||
{
|
||||
public override PlayerState StateId => PlayerState.Cutscene;
|
||||
[Export]
|
||||
private PlayerAnimationProvider _animationProvider;
|
||||
|
||||
|
|
@ -19,7 +20,7 @@ public partial class Cutscene : PlayerFSMState
|
|||
|
||||
public override void ProcessState(double delta)
|
||||
{
|
||||
_animationProvider.SetAnimation(_stateMachine.Velocity);
|
||||
_animationProvider.SetAnimation(MainObject.Velocity);
|
||||
}
|
||||
|
||||
public override void PhysicsProcessState(double delta)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue