Changed elevator to be child of path

This commit is contained in:
Marco 2025-03-11 16:17:29 +01:00
commit 9bbc631dd3
11 changed files with 117 additions and 116 deletions

View file

@ -0,0 +1,21 @@
using Cirno.Scripts.Enums;
using Godot;
namespace Cirno.Scripts.Components.FSM.Elevator;
public partial class ElevatorProxyProxy : Path2D, IActivable
{
[Export] public ElevatorState StartingState { get; protected set; } = ElevatorState.Bottom;
private ElevatorProxy _elevatorProxy;
public override void _Ready()
{
_elevatorProxy = this.GetNode<ElevatorProxy>("Elevator");
}
public bool Activate(ActivationType activationType = ActivationType.Toggle)
{
return _elevatorProxy.Activate(activationType);
}
}

View file

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