mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
46 lines
No EOL
1 KiB
C#
46 lines
No EOL
1 KiB
C#
using Cirno.Scripts.Components.Actors._3D;
|
|
using Cirno.Scripts.Components.FSM.Player;
|
|
using Cirno.Scripts.Utils;
|
|
using Godot;
|
|
|
|
namespace Cirno.Scripts.Components.FSM._3DPlayer;
|
|
|
|
public partial class Teleporting : BaseState<PlayerState, CharacterBody3D>
|
|
{
|
|
public override PlayerState StateId => PlayerState.Teleporting;
|
|
|
|
[Export] public PlayerAnimationProvider3D AnimationProvider { get; set; }
|
|
|
|
public override void Init(IStateMachine<PlayerState, CharacterBody3D> machine)
|
|
{
|
|
base.Init(machine);
|
|
}
|
|
|
|
public override void EnterState()
|
|
{
|
|
base.EnterState();
|
|
AnimationProvider.PlayTeleportAnimation();
|
|
MainObject.Velocity = Vector3.Zero;
|
|
}
|
|
|
|
public override void ExitState()
|
|
{
|
|
base.ExitState();
|
|
|
|
|
|
}
|
|
|
|
public override void ProcessState(double delta)
|
|
{
|
|
base.ProcessState(delta);
|
|
|
|
}
|
|
|
|
public override void PhysicsProcessState(double delta)
|
|
{
|
|
// Process modules
|
|
base.PhysicsProcessState(delta);
|
|
|
|
}
|
|
|
|
} |