42 lines
1.8 KiB
Plaintext
42 lines
1.8 KiB
Plaintext
[gd_scene load_steps=6 format=3 uid="uid://c2kiuk2yxdlfr"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://1kr3qqan3trk" path="res://objects/player.tscn" id="1_7kr4i"]
|
|
[ext_resource type="PackedScene" uid="uid://dm3355tbkvx24" path="res://objects/section_2.tscn" id="2_og5hb"]
|
|
[ext_resource type="PackedScene" uid="uid://0fykl1mw3c12" path="res://objects/enemy.tscn" id="3_ppe0x"]
|
|
|
|
[sub_resource type="GDScript" id="GDScript_peyat"]
|
|
script/source = "extends Area3D
|
|
|
|
|
|
func _on_body_entered(body: Node3D) -> void:
|
|
if body is Player:
|
|
$\"../Enemy2\".notice_player(body as Player)
|
|
$\"../Enemy\".notice_player(body as Player)
|
|
"
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_ggysn"]
|
|
size = Vector3(3.69043, 1, 8.0553)
|
|
|
|
[node name="Boot" type="Node3D"]
|
|
|
|
[node name="Environment" parent="." instance=ExtResource("2_og5hb")]
|
|
|
|
[node name="Enemy" parent="." instance=ExtResource("3_ppe0x")]
|
|
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 9.02629, 0.258895, -7.46576)
|
|
|
|
[node name="Area3D" type="Area3D" parent="."]
|
|
transform = Transform3D(0.734015, 0, -0.679134, 0, 1, 0, 0.679134, 0, 0.734015, 2.09421, 0.536154, -14.1446)
|
|
script = SubResource("GDScript_peyat")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
|
transform = Transform3D(1, 0, -4.91743e-07, 0, 1, 0, 4.91743e-07, 0, 1, 0, 0, 0)
|
|
shape = SubResource("BoxShape3D_ggysn")
|
|
|
|
[node name="Enemy2" parent="." instance=ExtResource("3_ppe0x")]
|
|
transform = Transform3D(0.139795, 0, -0.990181, 0, 1, 0, 0.990181, 0, 0.139795, 8.69408, 0.536154, -15.4052)
|
|
|
|
[node name="Player" parent="." instance=ExtResource("1_7kr4i")]
|
|
transform = Transform3D(0.0816776, 0, 0.996659, 0, 1, 0, -0.996659, 0, 0.0816776, -2.58966, 0.891191, -2.77265)
|
|
|
|
[connection signal="body_entered" from="Area3D" to="Area3D" method="_on_body_entered"]
|