From 039eafdf48a3bd8d3a131f0375e3f68b8b9d3378 Mon Sep 17 00:00:00 2001 From: cakipaul Date: Sun, 20 Apr 2025 22:27:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9F=B3=E6=95=88=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scene/ground/script/c01/s12_飘动的寻人启事.gd | 1 + scene/ground/script/c01/s12_飘动的寻人启事.tscn | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/scene/ground/script/c01/s12_飘动的寻人启事.gd b/scene/ground/script/c01/s12_飘动的寻人启事.gd index a77fd71c..17f0f0b9 100644 --- a/scene/ground/script/c01/s12_飘动的寻人启事.gd +++ b/scene/ground/script/c01/s12_飘动的寻人启事.gd @@ -67,6 +67,7 @@ func _next_point() -> void: func _on_interacted() -> void: if interacted_x == -10000: _set_current_x_as_interacted_x() + $SfxOpen.play() var inspect_texture = preload("res://asset/art/scene/c01/s07_书店外/纸片_正面.png") SceneManager.get_inspector().pop_prop_inspection("", inspect_texture, true) diff --git a/scene/ground/script/c01/s12_飘动的寻人启事.tscn b/scene/ground/script/c01/s12_飘动的寻人启事.tscn index 7e5bc65f..5fb2a715 100644 --- a/scene/ground/script/c01/s12_飘动的寻人启事.tscn +++ b/scene/ground/script/c01/s12_飘动的寻人启事.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=9 format=3 uid="uid://cn1ypquvs07wx"] +[gd_scene load_steps=10 format=3 uid="uid://cn1ypquvs07wx"] [ext_resource type="Script" uid="uid://bm5qxyu84rd3e" path="res://scene/ground/script/c01/s12_飘动的寻人启事.gd" id="1_like6"] [ext_resource type="Shader" uid="uid://dksa483a8v7g4" path="res://asset/shader/rotation_displacement_vertex.gdshader" id="2_2w1m2"] +[ext_resource type="AudioStream" uid="uid://duxo1jopqqf0q" path="res://asset/audio/sfx/交互/序章/04_书店内_移动书本.wav" id="2_ycl7d"] [ext_resource type="Texture2D" uid="uid://bul7j3lqvlxp7" path="res://asset/art/scene/c01/s07_书店外/纸片_正面.png" id="3_dl751"] [ext_resource type="PackedScene" uid="uid://c4tipnj1cr1j3" path="res://scene/entity/ux/sign.tscn" id="4_5dshd"] [ext_resource type="Texture2D" uid="uid://b343nvvbtpglb" path="res://asset/art/ui/互动提示符/ui 像素版_纯白.png" id="5_tf5lq"] @@ -23,6 +24,9 @@ size = Vector2(20, 10) position = Vector2(43, 96) script = ExtResource("1_like6") +[node name="SfxOpen" type="AudioStreamPlayer" parent="."] +stream = ExtResource("2_ycl7d") + [node name="Node2D" type="Node2D" parent="."] [node name="Sprite2D" type="Sprite2D" parent="Node2D"]