Squashed commit
This commit is contained in:
parent
c713781de4
commit
c3d8ff6989
14 changed files with 308 additions and 120 deletions
|
|
@ -47,9 +47,13 @@ func _on_pulse_started(duration: float):
|
|||
var lag = max(PULSE_CLOSE_LAG_MIN, PULSE_CLOSE_LAG_TOP - floors_descended * PULSE_CLOSE_LAG_PER_FLOOR)
|
||||
get_tree().create_timer(lag, false).timeout.connect(
|
||||
func():
|
||||
if _pulse_close_pending:
|
||||
if not _pulse_close_pending:
|
||||
return
|
||||
if $ElevatorDoorRight.position.x < DOOR_OPEN_X - 0.001:
|
||||
_pulse_close_pending = false
|
||||
_tween_doors(DOOR_CLOSED_X, duration),
|
||||
return
|
||||
_pulse_close_pending = false
|
||||
_tween_doors(DOOR_CLOSED_X, duration),
|
||||
CONNECT_ONE_SHOT
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue