mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 22:15:53 +00:00
Elevator top body
This commit is contained in:
parent
2ec5671bc2
commit
c8cd4ffb1d
10 changed files with 84 additions and 33 deletions
|
|
@ -11,6 +11,9 @@ public partial class Top : BaseState<ElevatorState, ElevatorProxy>
|
|||
MainObject.SetPosition(MainObject.ElevatorPath.Curve.GetPointPosition(0));
|
||||
|
||||
MainObject.Activated += ElevatorActivated;
|
||||
|
||||
// Disable top body
|
||||
MainObject.TopBody.Disabled = true;
|
||||
}
|
||||
|
||||
private void ElevatorActivated(ActivationType type)
|
||||
|
|
@ -42,5 +45,7 @@ public partial class Top : BaseState<ElevatorState, ElevatorProxy>
|
|||
public override void ExitState()
|
||||
{
|
||||
MainObject.Activated -= ElevatorActivated;
|
||||
// Enable top body
|
||||
MainObject.TopBody.Disabled = false;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue