fix error that happens after the GUI is freed
This commit is contained in:
parent
71bf91fd2f
commit
5c4106246c
@ -99,8 +99,9 @@ func _ready() -> void:
|
|||||||
|
|
||||||
func _physics_process(_delta: float) -> void:
|
func _physics_process(_delta: float) -> void:
|
||||||
if monitor_enabled:
|
if monitor_enabled:
|
||||||
if not $MonitorGUI.visible:
|
if has_node("MonitorGUI") and not $MonitorGUI.visible:
|
||||||
$MonitorGUI.visible = true
|
$MonitorGUI.visible = true
|
||||||
|
|
||||||
if started and not get_tree().paused:
|
if started and not get_tree().paused:
|
||||||
var frame = empty_frame.duplicate(true)
|
var frame = empty_frame.duplicate(true)
|
||||||
frame["coins"] = coins
|
frame["coins"] = coins
|
||||||
|
Loading…
Reference in New Issue
Block a user