sfx update

This commit is contained in:
cakipaul 2025-07-21 17:25:04 +08:00
parent 85475ff549
commit 6fc8efd46d

View File

@ -44,7 +44,7 @@ func _on_pause_counter_updated() -> void:
func _set_up_process_mode_by_mode():
# 如果是 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
else:
if SceneManager.pause_counter_arr.has("debugging"):