From d3f6967fe666595cf0862be57a3dae3bb23afd24 Mon Sep 17 00:00:00 2001 From: IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com> Date: Sun, 17 Jul 2022 03:40:41 +0200 Subject: asset for the goal trigger --- godot/scripts/GoalTriggerBox.gd | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 godot/scripts/GoalTriggerBox.gd (limited to 'godot/scripts') 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() - -- cgit