diff --git a/Level/InFactory.tscn b/Level/InFactory.tscn index daee1ea..0ee3164 100644 --- a/Level/InFactory.tscn +++ b/Level/InFactory.tscn @@ -1,10 +1,13 @@ -[gd_scene load_steps=11 format=2] +[gd_scene load_steps=14 format=2] [ext_resource path="res://Level/Buildings/DoubleDoorWall.tscn" type="PackedScene" id=1] [ext_resource path="res://Level/Buildings/DoorWall.tscn" type="PackedScene" id=2] [ext_resource path="res://Level/Interactables/FactoryMachines/FactoryGameplay.tscn" type="PackedScene" id=3] [ext_resource path="res://Level/Decoration/Statue.tscn" type="PackedScene" id=4] [ext_resource path="res://Characters/Player/Player.tscn" type="PackedScene" id=5] +[ext_resource path="res://Level/FactoryMusicHandler.gd" type="Script" id=6] +[ext_resource path="res://Resources/Audio/FactoryMusic/inactive.wav" type="AudioStream" id=7] +[ext_resource path="res://Resources/Audio/FactoryMusic/active.wav" type="AudioStream" id=8] [sub_resource type="BoxShape" id=1] @@ -208,3 +211,17 @@ transform = Transform( -7.86805e-008, 0, -2.5, 0, 1.8, 0, 1.8, 0, -1.09278e-007, transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, 0 ) IsOutside = false IsInFactory = true + +[node name="FactoryMusicHandler" type="Node" parent="."] +script = ExtResource( 6 ) +path_to_pipegame = NodePath("../Architecture/FactoryRoomInterior/PipeGame") + +[node name="InactiveMusic" type="AudioStreamPlayer" parent="FactoryMusicHandler"] +stream = ExtResource( 7 ) +bus = "Masked" + +[node name="ActiveMusic" type="AudioStreamPlayer" parent="FactoryMusicHandler"] +stream = ExtResource( 8 ) +bus = "Masked" + +[node name="TrueMusic" type="AudioStreamPlayer" parent="FactoryMusicHandler"]