mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Fixed teleporters
This commit is contained in:
parent
9c3f22760b
commit
49cfb52d20
15 changed files with 102 additions and 84 deletions
1
Scripts/Components/FSM/Player/PlayerStateBase.cs.uid
Normal file
1
Scripts/Components/FSM/Player/PlayerStateBase.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://s5ok5qd2symf
|
||||
|
|
@ -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)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
1
Scripts/Components/FSM/PlayerArea2DModule.cs.uid
Normal file
1
Scripts/Components/FSM/PlayerArea2DModule.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://bnerroq14m4ds
|
||||
10
Scripts/Components/FSM/PlayerFSMProxy.cs
Normal file
10
Scripts/Components/FSM/PlayerFSMProxy.cs
Normal 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; }
|
||||
}
|
||||
1
Scripts/Components/FSM/PlayerFSMProxy.cs.uid
Normal file
1
Scripts/Components/FSM/PlayerFSMProxy.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://d2ubk5gucny6s
|
||||
Loading…
Add table
Add a link
Reference in a new issue