diff --git a/scene/entity/general/sfx.gd b/scene/entity/general/sfx.gd index 2e811f10..31bc2f6d 100644 --- a/scene/entity/general/sfx.gd +++ b/scene/entity/general/sfx.gd @@ -110,7 +110,7 @@ func _set(property: StringName, value: Variant) -> bool: if property == "自动开始": if value != null: autoplay = value - scene_autostart = value + scene_autostart = value return true elif property == "循环播放": scene_loop = value diff --git a/scene/ground/scene/c02/s10_空房间.tscn b/scene/ground/scene/c02/s10_空房间.tscn index 578e9a74..c33f4293 100644 --- a/scene/ground/scene/c02/s10_空房间.tscn +++ b/scene/ground/scene/c02/s10_空房间.tscn @@ -1,9 +1,8 @@ -[gd_scene load_steps=26 format=3 uid="uid://dny21yhtuteap"] +[gd_scene load_steps=25 format=3 uid="uid://dny21yhtuteap"] [ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_w7j0m"] [ext_resource type="Script" uid="uid://dkkey7qillk15" path="res://scene/ground/scene/c02/s10_animation.gd" id="2_egtqi"] [ext_resource type="AudioStream" uid="uid://6gttowdwmado" path="res://asset/audio/sfx/环境音/第一章/房间内部场景1.wav" id="3_chbaa"] -[ext_resource type="AudioStream" uid="uid://dthm5gd1sc16" path="res://asset/audio/sfx/环境音/第一章/房间内部场景2.wav" id="3_kqj5r"] [ext_resource type="Texture2D" uid="uid://molvyfyy63ik" path="res://asset/art/scene/c02/s10_空房间/bg_空房间.png" id="3_ox8et"] [ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/general/sfx.gd" id="4_chbaa"] [ext_resource type="PackedScene" uid="uid://61pis75a8fdq" path="res://scene/entity/portal.tscn" id="4_pde4i"] @@ -90,9 +89,7 @@ autoplay = true bus = &"game_sfx" script = ExtResource("4_chbaa") mode = "场景背景音" -audio_dict = Dictionary[String, AudioStream]({ -"default": ExtResource("3_kqj5r") -}) +audio_dict = Dictionary[String, AudioStream]({}) "自动开始" = true "循环播放" = true "感应玩家操作" = false