project-dung/scenes/power_station.tscn

35 lines
1.2 KiB
Plaintext

[gd_scene load_steps=6 format=2]
[ext_resource path="res://scripts/power_station.gd" type="Script" id=1]
[ext_resource path="res://scenes/coin_machine.tscn" type="PackedScene" id=2]
[ext_resource path="res://assets/sound/forceField_004.ogg" type="AudioStream" id=3]
[ext_resource path="res://assets/sound/error_008.ogg" type="AudioStream" id=4]
[sub_resource type="CubeMesh" id=1]
[node name="power_station" type="Spatial"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
script = ExtResource( 1 )
time_to_generate = 1.0
[node name="coin_machine" parent="." instance=ExtResource( 2 )]
transform = Transform( 1.4, 0, 0, 0, 1, 0, 0, 0, 1.4, 0, 0, 0 )
coins_required = 0
[node name="MeshInstance" type="MeshInstance" parent="."]
mesh = SubResource( 1 )
[node name="CointCount" type="Label3D" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0275149, 0.721019, 1.58046 )
billboard = 1
[node name="sounds" type="Node" parent="."]
[node name="charge_get" type="AudioStreamPlayer" parent="sounds"]
stream = ExtResource( 3 )
[node name="error" type="AudioStreamPlayer" parent="sounds"]
stream = ExtResource( 4 )
[connection signal="coin_requirement_met" from="coin_machine" to="." method="_on_coin_machine_coin_requirement_met"]