Updated interaction area setups to avoid nullrefs
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
[gd_scene load_steps=13 format=3 uid="uid://d4m5iy5mwqpq3"]
|
||||
[gd_scene load_steps=14 format=3 uid="uid://d4m5iy5mwqpq3"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cqc72e4hq6bcd" path="res://prefabs/interactions/interaction_area_2d.tscn" id="1_tp1yj"]
|
||||
[ext_resource type="Script" uid="uid://bdffon388rkty" path="res://scripts/CSharp/Common/Farming/FieldBehaviour2D.cs" id="2_c6u1a"]
|
||||
[ext_resource type="Material" uid="uid://blch5kdhkbj75" path="res://art/materials/intaractable_outline.tres" id="2_pdgar"]
|
||||
[ext_resource type="Texture2D" uid="uid://cgmu3qlovdr22" path="res://art/masks/field_outline_1.png" id="3_b5av1"]
|
||||
[ext_resource type="Texture2D" uid="uid://eg5ej0mtuac" path="res://art/masks/field_outline_2.png" id="4_yav45"]
|
||||
[ext_resource type="Texture2D" uid="uid://djpigvoyadvjs" path="res://art/masks/field_outline_3.png" id="5_pdgar"]
|
||||
@@ -12,16 +13,18 @@
|
||||
[ext_resource type="Script" uid="uid://dnipeibppjirs" path="res://scripts/CSharp/Common/NPC/DialogicOverlayStarter.cs" id="10_yav45"]
|
||||
[ext_resource type="Script" uid="uid://drle5aies8ye4" path="res://scripts/GdScript/dialogic_event_forward.gd" id="11_yav45"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_tp1yj"]
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_a35l4"]
|
||||
resource_local_to_scene = true
|
||||
radius = 300.0
|
||||
|
||||
[node name="BaseField" type="Node2D"]
|
||||
|
||||
[node name="InteractionArea2" parent="." instance=ExtResource("1_tp1yj")]
|
||||
[node name="InteractionArea2" parent="." node_paths=PackedStringArray("_spriteToOutline") instance=ExtResource("1_tp1yj")]
|
||||
visible = false
|
||||
z_index = 1
|
||||
scale = Vector2(2.225, 2.225)
|
||||
_outlineMaterial = ExtResource("2_pdgar")
|
||||
_spriteToOutline = NodePath("../FieldBehaviour/MaskedField")
|
||||
|
||||
[node name="FieldBehaviour" type="Sprite2D" parent="." node_paths=PackedStringArray("_fieldSprite", "_maskSprite", "_growingCollider")]
|
||||
z_index = -1
|
||||
@@ -50,8 +53,8 @@ _field = NodePath("..")
|
||||
[node name="01" parent="FieldBehaviour/BeetRoot/BigPlant" index="0"]
|
||||
visible = true
|
||||
|
||||
[node name="CollisionShape3D" parent="FieldBehaviour/BeetRoot/ReadyPlantInventoryItem/InteractionArea2/Area2D" index="0"]
|
||||
shape = SubResource("CircleShape2D_tp1yj")
|
||||
[node name="CollisionShape3D" parent="FieldBehaviour/BeetRoot/ReadyPlantInventoryItem/PickupInteractionArea/Area2D" index="0"]
|
||||
shape = SubResource("CircleShape2D_a35l4")
|
||||
|
||||
[node name="01" parent="FieldBehaviour/BeetRoot/ReadyPlantInventoryItem/ReadyPlant" index="0"]
|
||||
scale = Vector2(3, 3)
|
||||
@@ -84,4 +87,4 @@ eventName = "MagicWord"
|
||||
|
||||
[editable path="FieldBehaviour/BeetRoot"]
|
||||
[editable path="FieldBehaviour/BeetRoot/ReadyPlantInventoryItem"]
|
||||
[editable path="FieldBehaviour/BeetRoot/ReadyPlantInventoryItem/InteractionArea2"]
|
||||
[editable path="FieldBehaviour/BeetRoot/ReadyPlantInventoryItem/PickupInteractionArea"]
|
||||
|
||||
Reference in New Issue
Block a user