51 lines
2.8 KiB
Plaintext
51 lines
2.8 KiB
Plaintext
[gd_scene load_steps=7 format=2]
|
|
|
|
[ext_resource path="res://scripts/coin_machine.gd" type="Script" id=1]
|
|
[ext_resource path="res://scripts/hydroponics_station.gd" type="Script" id=2]
|
|
[ext_resource path="res://scenes/coin_machine.tscn" type="PackedScene" id=3]
|
|
|
|
[sub_resource type="CylinderMesh" id=1]
|
|
height = 0.936
|
|
radial_segments = 8
|
|
|
|
[sub_resource type="CubeMesh" id=3]
|
|
size = Vector3( 0.4, 1, 0.4 )
|
|
|
|
[sub_resource type="ConvexPolygonShape" id=2]
|
|
points = PoolVector3Array( -0.0608763, 0.449247, 0.974783, -0.0608763, -0.464612, -0.974783, -0.0608763, 0.449247, -0.974783, 0.974783, -0.464612, -0.0608763, -0.974783, -0.464612, 0.0608763, 0.974783, 0.449247, 0.0608763, 0.0606902, -0.464648, 0.97486, -0.974783, 0.449247, -0.0608763, 0.7071, 0.453517, -0.7071, -0.705748, -0.468, -0.705748, -0.7071, 0.453517, 0.7071, 0.7071, 0.453517, 0.7071, 0.705748, -0.468, 0.705748, -0.705748, -0.468, 0.705748, 0.705748, -0.468, -0.705748, -0.7071, 0.453517, -0.7071, 0.0606902, -0.464648, -0.97486, -0.974783, -0.464612, -0.0608763, 0.974783, -0.464612, 0.0608763, -0.0608763, -0.464612, 0.974783, 0.0606902, 0.449283, 0.97486, 0.0606902, 0.449283, -0.97486, 0.974783, 0.449247, -0.0608763, -0.974783, 0.449247, 0.0608763, -0.642208, -0.46642, 0.73398, -0.642208, -0.46642, -0.73398, 0.578116, -0.464071, -0.760529, 0.578116, -0.464071, 0.760529, 0.760589, -0.464107, 0.577971, -0.760589, -0.464107, 0.577971, -0.760589, -0.464107, -0.577971, 0.760589, -0.464107, -0.577971 )
|
|
|
|
[node name="hydroponics_station" type="Spatial"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 11.4134, 0, -2.96909 )
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="."]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.372095, 0 )
|
|
mesh = SubResource( 1 )
|
|
|
|
[node name="Yam" type="MeshInstance" parent="MeshInstance"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.886431, 0 )
|
|
visible = false
|
|
mesh = SubResource( 3 )
|
|
skeleton = NodePath("../../..")
|
|
|
|
[node name="status_label" type="Label3D" parent="MeshInstance"]
|
|
unique_name_in_owner = true
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.737837, 0 )
|
|
billboard = 1
|
|
|
|
[node name="StaticBody" type="StaticBody" parent="."]
|
|
|
|
[node name="CollisionShape2" type="CollisionShape" parent="StaticBody"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.372095, 0 )
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="coin_machine" type="Area" parent="." instance=ExtResource( 3 )]
|
|
transform = Transform( 0.540026, 0, 0, 0, 0.571038, 0, 0, 0, 0.497953, 0, 0.418593, 0 )
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="grow_timer" type="Timer" parent="."]
|
|
one_shot = true
|
|
|
|
[connection signal="coin_requirement_met" from="coin_machine" to="." method="_on_coin_machine_coin_requirement_met"]
|
|
[connection signal="timeout" from="grow_timer" to="." method="_on_Timer_timeout"]
|