cirnogodot/Scripts/Components/FSM/Player/Cutscene.cs

31 lines
699 B
C#
Raw Normal View History

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 Cutscene : PlayerStateBase
2025-03-01 18:02:11 +01:00
{
2025-03-05 10:55:14 +01:00
public override PlayerState StateId => PlayerState.Cutscene;
2025-03-01 18:02:11 +01:00
[Export]
private PlayerAnimationProvider _animationProvider;
public override void EnterState()
{
}
public override void ExitState()
{
2025-04-08 10:44:06 +02:00
_animationProvider.SetAnimationSpeed(Vector2.Zero);
2025-03-01 18:02:11 +01:00
}
public override void ProcessState(double delta)
{
2025-04-08 10:44:06 +02:00
_animationProvider.SetAnimationSpeed(MainObject.Velocity);
2025-03-05 10:55:14 +01:00
_animationProvider.SetAnimation(MainObject.Velocity);
2025-03-01 18:02:11 +01:00
}
public override void PhysicsProcessState(double delta)
{
}
}