correction de l'audio et des dialogues
This commit was merged in pull request #149.
This commit is contained in:
@@ -42,6 +42,7 @@ func _ready():
|
||||
|
||||
func handle_dialogs():
|
||||
if not POST_TUTORIAL_DIALOG_PATH in GameInfo.game_data.dialogs_done:
|
||||
await get_tree().create_timer(5).timeout
|
||||
await ring_phone(POST_TUTORIAL_DIALOG_PATH)
|
||||
|
||||
func ring_phone(dialog_path : String):
|
||||
|
||||
@@ -25,3 +25,8 @@ func _ready():
|
||||
Dialogic.start(DIALOG_PATH)
|
||||
await Dialogic.timeline_ended
|
||||
SceneManager.change_to_scene_id("COCKPIT")
|
||||
|
||||
|
||||
func _on_jingle_area_body_entered(body: Node3D):
|
||||
if body is Player3D:
|
||||
AudioManager.play_sfx("Ship_reveal")
|
||||
|
||||
@@ -58,6 +58,9 @@ shading_mode = 0
|
||||
albedo_color = Color(0.5882353, 0.7019608, 0.85882354, 1)
|
||||
albedo_texture = ExtResource("2_yl6nj")
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_dkh4e"]
|
||||
size = Vector3(20.170532, 9.8758545, 1)
|
||||
|
||||
[node name="ShipGarage" type="Node3D" unique_id=707746738]
|
||||
script = ExtResource("1_43lym")
|
||||
|
||||
@@ -150,3 +153,12 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.37195766, 2.8968668, -0.44
|
||||
[node name="Phone" parent="." unique_id=429299908 instance=ExtResource("7_dkh4e")]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(-0.83126587, 0, -0.555875, 0, 1, 0, 0.555875, 0, -0.83126587, -4.110002, 1.6397171, 6.610814)
|
||||
|
||||
[node name="JingleArea" type="Area3D" parent="." unique_id=731941135]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 22.818235, 0, 22.5019)
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="JingleArea" unique_id=1026275057]
|
||||
transform = Transform3D(0.70710677, 0, 0.70710677, 0, 1, 0, -0.70710677, 0, 0.70710677, 0.009346008, 4.4379272, 0.18450356)
|
||||
shape = SubResource("BoxShape3D_dkh4e")
|
||||
|
||||
[connection signal="body_entered" from="JingleArea" to="." method="_on_jingle_area_body_entered"]
|
||||
|
||||
Reference in New Issue
Block a user