mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
26 lines
No EOL
626 B
C#
26 lines
No EOL
626 B
C#
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);
|
|
}
|
|
|
|
public void Toggle()
|
|
{
|
|
this.Activate();
|
|
}
|
|
} |