🚧 WIP: trying to rework the detection system (it fails)
This commit is contained in:
@@ -1,12 +1,20 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://pflu0uaig7vv"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://pflu0uaig7vv"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ccc6m6c5khd2x" path="res://scripts/CSharp/Common/CharacterControls/DetectionCross.cs" id="1_va8tx"]
|
||||
[ext_resource type="PackedScene" uid="uid://dugr6ff1g7hi0" path="res://prefabs/interactions/detector.tscn" id="2_8hh05"]
|
||||
[ext_resource type="Script" uid="uid://b4n0nlu4ckqga" path="res://scripts/CSharp/Common/CharacterControls/RaycastDetector.cs" id="2_va8tx"]
|
||||
|
||||
[node name="DetectionCross" type="Node2D" node_paths=PackedStringArray("_detector")]
|
||||
[node name="DetectionCross" type="Node2D" node_paths=PackedStringArray("_collider", "_detector")]
|
||||
script = ExtResource("1_va8tx")
|
||||
_detector = NodePath("detector")
|
||||
_xOffset = 400.0
|
||||
_yOffset = 300.0
|
||||
_collider = NodePath("detector")
|
||||
_detector = NodePath("Raycast")
|
||||
_xOffset = 200.0
|
||||
_yOffset = 200.0
|
||||
|
||||
[node name="Raycast" type="RayCast2D" parent="."]
|
||||
top_level = true
|
||||
target_position = Vector2(257, -149)
|
||||
collide_with_areas = true
|
||||
script = ExtResource("2_va8tx")
|
||||
|
||||
[node name="detector" parent="." instance=ExtResource("2_8hh05")]
|
||||
|
||||
Reference in New Issue
Block a user