Externalized ItemSpawner from Grass.
parent
e528bfb91b
commit
f776005715
|
@ -1,9 +1,8 @@
|
||||||
[gd_scene load_steps=6 format=3 uid="uid://bwt4hbinrod8q"]
|
[gd_scene load_steps=5 format=3 uid="uid://bwt4hbinrod8q"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://objects/grass.gd" id="1_sc4bm"]
|
[ext_resource type="Script" path="res://objects/grass.gd" id="1_sc4bm"]
|
||||||
[ext_resource type="PackedScene" uid="uid://c5x71uagdcocv" path="res://assets/3rdparty/kenney/survival-kit/Models/grassLarge.glb" id="2_4frmr"]
|
[ext_resource type="PackedScene" uid="uid://c5x71uagdcocv" path="res://assets/3rdparty/kenney/survival-kit/Models/grassLarge.glb" id="2_4frmr"]
|
||||||
[ext_resource type="Script" path="res://objects/item_spawner.gd" id="3_eji24"]
|
[ext_resource type="PackedScene" uid="uid://br6po50kfianv" path="res://objects/item_spawner.tscn" id="3_cuts0"]
|
||||||
[ext_resource type="Resource" uid="uid://mvph5aepql1t" path="res://data/items/seeds.tres" id="4_rsj4o"]
|
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_4etwi"]
|
[sub_resource type="BoxShape3D" id="BoxShape3D_4etwi"]
|
||||||
size = Vector3(0.5, 0.483398, 0.5)
|
size = Vector3(0.5, 0.483398, 0.5)
|
||||||
|
@ -30,10 +29,8 @@ shape = SubResource("BoxShape3D_4etwi")
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
wait_time = 2.0
|
wait_time = 2.0
|
||||||
|
|
||||||
[node name="ItemSpawner" type="Node3D" parent="."]
|
[node name="ItemSpawner" parent="." instance=ExtResource("3_cuts0")]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
script = ExtResource("3_eji24")
|
|
||||||
item = ExtResource("4_rsj4o")
|
|
||||||
|
|
||||||
[connection signal="area_shape_entered" from="Hitbox" to="." method="_on_hitbox_area_shape_entered"]
|
[connection signal="area_shape_entered" from="Hitbox" to="." method="_on_hitbox_area_shape_entered"]
|
||||||
[connection signal="timeout" from="GrowTimer" to="." method="_on_grow_timer_timeout"]
|
[connection signal="timeout" from="GrowTimer" to="." method="_on_grow_timer_timeout"]
|
||||||
|
|
Loading…
Reference in New Issue