aboutsummaryrefslogtreecommitdiffstats
path: root/godot/scripts/GoalTriggerBox.gd
diff options
context:
space:
mode:
authorLibravatar cel <cel@blos.sm>2022-07-17 02:56:58 +0100
committerLibravatar cel <cel@blos.sm>2022-07-17 02:56:58 +0100
commit5d5d662a99a512e2718aae4a4a84f050bc1d411f (patch)
treee0c4dde0528ac8318f0775c3dac511e609a72826 /godot/scripts/GoalTriggerBox.gd
parent45c8787154fe7384c9c1faa2ab7c003b995393ca (diff)
parent16f5d5aaacdd1a1420bba8d6600942520d85cb8c (diff)
download2022-5d5d662a99a512e2718aae4a4a84f050bc1d411f.tar.gz
2022-5d5d662a99a512e2718aae4a4a84f050bc1d411f.tar.bz2
2022-5d5d662a99a512e2718aae4a4a84f050bc1d411f.zip
merged
Diffstat (limited to 'godot/scripts/GoalTriggerBox.gd')
-rw-r--r--godot/scripts/GoalTriggerBox.gd22
1 files changed, 0 insertions, 22 deletions
diff --git a/godot/scripts/GoalTriggerBox.gd b/godot/scripts/GoalTriggerBox.gd
deleted file mode 100644
index 6e1034b..0000000
--- a/godot/scripts/GoalTriggerBox.gd
+++ /dev/null
@@ -1,22 +0,0 @@
-extends Area
-
-const Loader = preload("res://scenes/Game.gd")
-var loader: Loader = null
-
-# Called when the node enters the scene tree for the first time.
-func _ready():
- loader = get_node("/root/Game")
-
-
-# Called every frame. 'delta' is the elapsed time since the previous frame.
-#func _process(delta):
-# pass
-
-
-func _on_Area2_body_entered(body: RigidBody):
- # return when body is not a rigidbody
- if body == null:
- return
-
- loader.end_level()
-