tweak: doors unlock the collider on the up flank
This commit is contained in:
parent
efc2488dff
commit
2b949d8e73
|
|
@ -10,8 +10,4 @@ class_name SubwayTrain
|
|||
else:
|
||||
%TrainModel/AnimationPlayer.play("door_close")
|
||||
|
||||
func _ready() -> void:
|
||||
%TrainModel/AnimationPlayer.animation_finished.connect(_on_animation_finished)
|
||||
|
||||
func _on_animation_finished(_discard) -> void:
|
||||
%FrontWallClosed.disabled = door_open
|
||||
|
|
|
|||
|
|
@ -31,6 +31,9 @@ var tween: Tween = null
|
|||
func _ready() -> void:
|
||||
assert(note and frame and canvas_layer, "Interactable must have views and frame attached")
|
||||
|
||||
# how did this ever work?
|
||||
await get_tree().process_frame
|
||||
|
||||
if interaction:
|
||||
playable = interaction.instantiate() as Control
|
||||
canvas_layer.add_child(playable)
|
||||
|
|
|
|||
Loading…
Reference in New Issue