mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 08:45:54 +00:00
Add FSM components for player and enemy state management, including initialization and module resolution
This commit is contained in:
parent
18683c0680
commit
b6cc5a00e8
57 changed files with 526 additions and 506 deletions
|
|
@ -6,12 +6,12 @@ public partial class Teleporting : PlayerStateBase
|
|||
{
|
||||
public override PlayerState StateId => PlayerState.Teleporting;
|
||||
|
||||
[Export]
|
||||
private PlayerAnimationProvider _animationProvider;
|
||||
|
||||
public override void EnterState()
|
||||
{
|
||||
_animationProvider.PlayTeleportAnimation();
|
||||
_animationProvider ??= StateMachine.GetModule<PlayerAnimationProvider>();
|
||||
_animationProvider?.PlayTeleportAnimation();
|
||||
}
|
||||
|
||||
public override void ExitState()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue