mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-16 11:33:47 +00:00
Elevator sound
This commit is contained in:
parent
c8cd4ffb1d
commit
f5cdc1a993
5 changed files with 43 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://cxjumgf8bhr3l"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://cxjumgf8bhr3l"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cyq6f1n0nrgrs" path="res://Sprites/Elevator.png" id="1_0xq5m"]
|
||||
[ext_resource type="Script" uid="uid://b6jp6fhmwmobv" path="res://Scripts/Components/FSM/Elevator/ElevatorProxy.cs" id="1_xv5vg"]
|
||||
|
|
@ -8,6 +8,7 @@
|
|||
[ext_resource type="Script" uid="uid://cxxu5ed50wiev" path="res://Scripts/Components/FSM/Elevator/Top.cs" id="6_rd3yl"]
|
||||
[ext_resource type="Script" uid="uid://bgmehqn7g7fvj" path="res://Scripts/Components/FSM/Elevator/Ascending.cs" id="7_r4wj7"]
|
||||
[ext_resource type="Script" uid="uid://72sfdklqrc6d" path="res://Scripts/Components/FSM/Elevator/Descending.cs" id="8_flmvm"]
|
||||
[ext_resource type="AudioStream" uid="uid://b0b3rcpdvfwsk" path="res://SFX/elevator.ogg" id="9_flmvm"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3lpp4"]
|
||||
size = Vector2(20, 19)
|
||||
|
|
@ -37,13 +38,18 @@ script = ExtResource("5_57077")
|
|||
[node name="Top" type="Node2D" parent="StateMachine"]
|
||||
script = ExtResource("6_rd3yl")
|
||||
|
||||
[node name="Ascending" type="Node2D" parent="StateMachine"]
|
||||
[node name="Ascending" type="Node2D" parent="StateMachine" node_paths=PackedStringArray("Sound")]
|
||||
script = ExtResource("7_r4wj7")
|
||||
Sound = NodePath("../../AudioStreamPlayer2D")
|
||||
|
||||
[node name="Descending" type="Node2D" parent="StateMachine"]
|
||||
[node name="Descending" type="Node2D" parent="StateMachine" node_paths=PackedStringArray("Sound")]
|
||||
script = ExtResource("8_flmvm")
|
||||
Sound = NodePath("../../AudioStreamPlayer2D")
|
||||
|
||||
[node name="Disabled" type="Node2D" parent="StateMachine"]
|
||||
|
||||
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("9_flmvm")
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
[connection signal="area_exited" from="." to="." method="_on_area_exited"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue