Merge remote-tracking branch 'origin/demo'

This commit is contained in:
cakipaul 2025-07-21 17:25:21 +08:00
commit b42f6e510e

View File

@ -44,7 +44,7 @@ func _on_pause_counter_updated() -> void:
func _set_up_process_mode_by_mode(): func _set_up_process_mode_by_mode():
# 如果是 debug panel则 pause # 如果是 debug panel则 pause
if mode == "场景背景音" and not SceneManager.pause_counter_arr.has("debugging"): if mode == "场景背景音" and (SceneManager.is_node_ready() and not SceneManager.pause_counter_arr.has("debugging")):
process_mode = Node.PROCESS_MODE_ALWAYS process_mode = Node.PROCESS_MODE_ALWAYS
else: else:
if SceneManager.pause_counter_arr.has("debugging"): if SceneManager.pause_counter_arr.has("debugging"):