Changed player to new one

This commit is contained in:
Marco 2025-03-02 11:58:30 +01:00
commit 1c1436a539
27 changed files with 323 additions and 87 deletions

View file

@ -78,7 +78,7 @@ public partial class Active : PlayerFSMState
// enable sprite
// enable crosshair
_crosshairProvider.Show();
_animationProvider.ShowSprite();
_damageReceiver.Enabled = true;
_activationProvider.Enabled = true;
}

View file

@ -14,12 +14,12 @@ public partial class Cutscene : PlayerFSMState
public override void ExitState()
{
_animationProvider.SetAnimation(Vector2.Zero);
}
public override void ProcessState(double delta)
{
_animationProvider.SetAnimation(_stateMachine.Velocity);
}
public override void PhysicsProcessState(double delta)

View file

@ -9,7 +9,7 @@ public partial class Teleporting : PlayerFSMState
public override void EnterState()
{
_animationProvider.PlayTeleportAnimation();
}
public override void ExitState()

View file

@ -0,0 +1,29 @@
using Godot;
namespace Cirno.Scripts.Components.FSM.Player;
public partial class UnTeleporting : PlayerFSMState
{
[Export]
private PlayerAnimationProvider _animationProvider;
public override void EnterState()
{
_animationProvider.PlayUnteleportAnimation();
}
public override void ExitState()
{
}
public override void ProcessState(double delta)
{
}
public override void PhysicsProcessState(double delta)
{
}
}

View file

@ -0,0 +1 @@
uid://br2ev58gwuvu4