Add new resources and presenters for item pickups and effects
This commit is contained in:
24
Objects/health_pack.tscn
Normal file
24
Objects/health_pack.tscn
Normal file
@@ -0,0 +1,24 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://ceo2sg2077t4c"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ck82xby5qe680" path="res://Code/Presenters/PickupPresenter.cs" id="1_mnrc7"]
|
||||
[ext_resource type="Script" uid="uid://b6x8llipvutqs" path="res://Code/Presenters/SceneEntity.cs" id="2_eofgr"]
|
||||
[ext_resource type="Resource" uid="uid://cpw3nyfu40vyo" path="res://Resources/Pickups/health_pack_data.tres" id="3_riqti"]
|
||||
|
||||
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_03cv3"]
|
||||
data = PackedVector3Array(0, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0, 0.5, 0.5, 0, 0.5, -0.5, 0.5, -0.5, 0.5, 0, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0, 0.5, -0.5, 0, 0.5, 0.5, -0.5, -0.5, -0.5, 0, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5)
|
||||
|
||||
[sub_resource type="PrismMesh" id="PrismMesh_8eow7"]
|
||||
|
||||
[node name="HealthPack" type="Area3D"]
|
||||
script = ExtResource("1_mnrc7")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("ConcavePolygonShape3D_03cv3")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("PrismMesh_8eow7")
|
||||
|
||||
[node name="SceneEntity" type="Node" parent="." groups=["SceneEntities"]]
|
||||
script = ExtResource("2_eofgr")
|
||||
ComponentResources = Array[Resource]([ExtResource("3_riqti")])
|
||||
metadata/_custom_type_script = "uid://b6x8llipvutqs"
|
||||
Reference in New Issue
Block a user