Added Itemsmanager
Items now can be stored. I wanna kill myself
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://c0gypplbklc3i"]
|
||||
[gd_scene load_steps=13 format=3 uid="uid://c0gypplbklc3i"]
|
||||
|
||||
[ext_resource type="ArrayMesh" uid="uid://k2k1ppv3ycsv" path="res://Blends/Shelf/Shelf.obj" id="1_usf1u"]
|
||||
[ext_resource type="Script" uid="uid://c61rr6to3q566" path="res://Scripts/build_object.gd" id="1_ya6sq"]
|
||||
@@ -6,6 +6,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://5gmmgg4cmefr" path="res://Blends/Shelf/color.png" id="2_x70sl"]
|
||||
[ext_resource type="Texture2D" uid="uid://q0duenho1u2x" path="res://Blends/Shelf/normal.png" id="3_ya6sq"]
|
||||
[ext_resource type="Shader" uid="uid://c08eg1piwoy3t" path="res://Shaders/outline.gdshader" id="5_jbe2f"]
|
||||
[ext_resource type="Script" uid="uid://dw0nntbakhny6" path="res://Scripts/objects/shelf_object.gd" id="7_4318v"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_4318v"]
|
||||
render_priority = 0
|
||||
@@ -16,6 +17,7 @@ shader_parameter/color = Vector3(0, 0, 0)
|
||||
render_priority = 0
|
||||
shader = ExtResource("5_jbe2f")
|
||||
shader_parameter/is_active = false
|
||||
shader_parameter/color = Vector3(0.95, 0.71, 0.01)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_jbe2f"]
|
||||
next_pass = SubResource("ShaderMaterial_0dtcx")
|
||||
@@ -27,10 +29,14 @@ normal_texture = ExtResource("3_ya6sq")
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_jbe2f"]
|
||||
size = Vector3(4.40356, 3.34375, 1.28992)
|
||||
|
||||
[node name="Shelf" type="Node3D" node_paths=PackedStringArray("meshInstance")]
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_jbe2f"]
|
||||
radius = 0.870929
|
||||
|
||||
[node name="Shelf" type="Node3D" node_paths=PackedStringArray("meshInstance", "ActionNode")]
|
||||
script = ExtResource("1_ya6sq")
|
||||
meshInstance = NodePath("Shelf")
|
||||
preview_shader = SubResource("ShaderMaterial_4318v")
|
||||
ActionNode = NodePath("ActionNode")
|
||||
|
||||
[node name="Shelf" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(-2.18557e-08, 0, -0.5, 0, 0.5, 0, 0.5, 0, -2.18557e-08, 0, -1.53245, 0)
|
||||
@@ -38,7 +44,26 @@ mesh = ExtResource("1_usf1u")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_jbe2f")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="."]
|
||||
input_ray_pickable = false
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0545654, 0.0981445, -0.0205688)
|
||||
shape = SubResource("BoxShape3D_jbe2f")
|
||||
|
||||
[node name="ActionNode" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.39139)
|
||||
script = ExtResource("7_4318v")
|
||||
|
||||
[node name="Area3d" type="Area3D" parent="ActionNode"]
|
||||
input_ray_pickable = false
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="ActionNode/Area3d"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.839141, 0.470829)
|
||||
shape = SubResource("SphereShape3D_jbe2f")
|
||||
|
||||
[node name="CSGSphere3D" type="CSGSphere3D" parent="ActionNode/Area3d"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.839141, 0.470829)
|
||||
visible = false
|
||||
radius = 0.886475
|
||||
|
||||
[connection signal="ready" from="ActionNode" to="ActionNode" method="_on_ready"]
|
||||
|
||||
Reference in New Issue
Block a user