Fixed teleporters

This commit is contained in:
Maddo 2025-03-05 12:27:15 +01:00
commit 49cfb52d20
15 changed files with 102 additions and 84 deletions

View file

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

View file

@ -4,11 +4,11 @@ namespace Cirno.Scripts.Components.FSM.Player;
public partial class Teleporting : PlayerStateBase
{
public override PlayerState StateId => PlayerState.Init;
public override PlayerState StateId => PlayerState.Teleporting;
[Export]
private PlayerAnimationProvider _animationProvider;
public override void EnterState()
{
_animationProvider.PlayTeleportAnimation();
@ -16,16 +16,16 @@ public partial class Teleporting : PlayerStateBase
public override void ExitState()
{
}
public override void ProcessState(double delta)
{
}
public override void PhysicsProcessState(double delta)
{
}
}

View file

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

View file

@ -0,0 +1,10 @@
using System;
using Godot;
namespace Cirno.Scripts.Components.FSM;
public partial class PlayerFSMProxy : CharacterBody2D
{
[Export] public PlayerStateMachine PlayerFSM { get; private set; }
[Export] public InteractionController InteractionController { get; private set; }
}

View file

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