Clean after change room: game scene is cleanly removed from prev room (#416)
This commit is contained in:
@@ -39,7 +39,7 @@ onready var pause_menu = $ui/pause_menu
|
||||
onready var inventory_ui = $ui/Control/panel_down/VBoxContainer/HBoxContainer\
|
||||
/InventoryMargin/inventory_ui
|
||||
|
||||
func _ready():
|
||||
func _enter_tree():
|
||||
ProjectSettings.set_setting("escoria/ui/tooltip_follows_mouse", false)
|
||||
escoria.action_manager.connect(
|
||||
"action_finished",
|
||||
@@ -47,6 +47,13 @@ func _ready():
|
||||
"_on_action_finished"
|
||||
)
|
||||
|
||||
func _exit_tree():
|
||||
escoria.action_manager.disconnect(
|
||||
"action_finished",
|
||||
self,
|
||||
"_on_action_finished"
|
||||
)
|
||||
|
||||
|
||||
## BACKGROUND ##
|
||||
|
||||
|
||||
Reference in New Issue
Block a user