2025-03-01 18:02:11 +01:00
|
|
|
|
using Godot;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Cirno.Scripts.Components.FSM.Player;
|
|
|
|
|
|
|
2025-03-05 10:55:14 +01:00
|
|
|
|
public partial class Teleporting : PlayerStateBase
|
2025-03-01 18:02:11 +01:00
|
|
|
|
{
|
2025-03-05 12:27:15 +01:00
|
|
|
|
public override PlayerState StateId => PlayerState.Teleporting;
|
|
|
|
|
|
|
2025-03-01 18:02:11 +01:00
|
|
|
|
[Export]
|
|
|
|
|
|
private PlayerAnimationProvider _animationProvider;
|
2025-03-05 12:27:15 +01:00
|
|
|
|
|
2025-03-01 18:02:11 +01:00
|
|
|
|
public override void EnterState()
|
|
|
|
|
|
{
|
2025-03-02 11:58:30 +01:00
|
|
|
|
_animationProvider.PlayTeleportAnimation();
|
2025-03-01 18:02:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void ExitState()
|
|
|
|
|
|
{
|
2025-03-05 12:27:15 +01:00
|
|
|
|
|
2025-03-01 18:02:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void ProcessState(double delta)
|
|
|
|
|
|
{
|
2025-03-05 12:27:15 +01:00
|
|
|
|
|
2025-03-01 18:02:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void PhysicsProcessState(double delta)
|
|
|
|
|
|
{
|
2025-03-05 12:27:15 +01:00
|
|
|
|
|
2025-03-01 18:02:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|