feat: gates enable nav links when destroyed
This commit is contained in:
parent
01be9cf1be
commit
e37335d792
1 changed files with 28 additions and 3 deletions
|
|
@ -17,15 +17,22 @@ func _highlight_changed(_interactor: PlayerInteractor, value: bool) -> void:
|
||||||
|
|
||||||
func _activated(interactor: PlayerInteractor) -> void:
|
func _activated(interactor: PlayerInteractor) -> void:
|
||||||
if interactor.try_use_demo_pack():
|
if interactor.try_use_demo_pack():
|
||||||
get_owner().queue_free()
|
%Gates.queue_free()
|
||||||
|
get_parent().queue_free()
|
||||||
|
%NavLink1.enabled = true
|
||||||
|
%NavLink2.enabled = true
|
||||||
|
%NavLink3.enabled = true
|
||||||
"
|
"
|
||||||
|
|
||||||
[node name="DestructableGates" type="Node3D" unique_id=529867088]
|
[node name="DestructableGates" type="Node3D" unique_id=529867088]
|
||||||
|
|
||||||
[node name="rolling_gate_left_2x3" parent="." unique_id=386032696 instance=ExtResource("1_uux8f")]
|
[node name="Gates" type="Node3D" parent="." unique_id=1446934388]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
|
||||||
|
[node name="rolling_gate_left_2x3" parent="Gates" unique_id=386032696 instance=ExtResource("1_uux8f")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 0)
|
||||||
|
|
||||||
[node name="rolling_gate_right_2x3" parent="." unique_id=588590345 instance=ExtResource("2_oww5e")]
|
[node name="rolling_gate_right_2x3" parent="Gates" unique_id=588590345 instance=ExtResource("2_oww5e")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0)
|
||||||
|
|
||||||
[node name="InteractionArea" type="Area3D" parent="." unique_id=2091182249]
|
[node name="InteractionArea" type="Area3D" parent="." unique_id=2091182249]
|
||||||
|
|
@ -40,3 +47,21 @@ debug_color = Color(0.71673584, 0.25538898, 1, 0.41960785)
|
||||||
|
|
||||||
[node name="Interactable" type="Interactable" parent="InteractionArea" unique_id=601910432]
|
[node name="Interactable" type="Interactable" parent="InteractionArea" unique_id=601910432]
|
||||||
script = SubResource("GDScript_uux8f")
|
script = SubResource("GDScript_uux8f")
|
||||||
|
|
||||||
|
[node name="NavLink1" type="NavigationLink3D" parent="." unique_id=248019015]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5981594, 0.56556, -0.5582942)
|
||||||
|
enabled = false
|
||||||
|
start_position = Vector3(0.018568635, -8.225441e-06, 1.1272192)
|
||||||
|
|
||||||
|
[node name="NavLink2" type="NavigationLink3D" parent="." unique_id=898937691]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.89018154, 0.56556, -0.6118293)
|
||||||
|
enabled = false
|
||||||
|
start_position = Vector3(-0.030825377, -8.225441e-06, 1.1807543)
|
||||||
|
|
||||||
|
[node name="NavLink3" type="NavigationLink3D" parent="." unique_id=439174634]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.10893625, 0.56556, -0.6118293)
|
||||||
|
enabled = false
|
||||||
|
start_position = Vector3(-0.030825377, -8.225441e-06, 1.1807543)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue