mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Changed elevator to be child of path
This commit is contained in:
parent
27925b5303
commit
9bbc631dd3
11 changed files with 117 additions and 116 deletions
21
Scripts/Components/FSM/Elevator/ElevatorProxyProxy.cs
Normal file
21
Scripts/Components/FSM/Elevator/ElevatorProxyProxy.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
uid://bd0m1l6pqjwf7
|
||||
Loading…
Add table
Add a link
Reference in a new issue