diff options
author | IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com> | 2022-07-17 02:49:09 +0200 |
---|---|---|
committer | IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com> | 2022-07-17 02:49:09 +0200 |
commit | 4961e6a3f51990bb053cd8b18827e39aaf3e4e7c (patch) | |
tree | 41387099b13b6aca4ac69cdb3a1124a85825d600 /godot/scripts/GoalTriggerBox.gd | |
parent | 88aeae3f02bfb19b83212599ac1eb950beb805b3 (diff) | |
parent | 8b932533e6d25a80f185bae299351426a4ca157e (diff) | |
download | 2022-4961e6a3f51990bb053cd8b18827e39aaf3e4e7c.tar.gz 2022-4961e6a3f51990bb053cd8b18827e39aaf3e4e7c.tar.bz2 2022-4961e6a3f51990bb053cd8b18827e39aaf3e4e7c.zip |
Merge branch 'Scoreboard'
Diffstat (limited to '')
-rw-r--r-- | godot/scripts/GoalTriggerBox.gd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/godot/scripts/GoalTriggerBox.gd b/godot/scripts/GoalTriggerBox.gd index 17e98ad..6e1034b 100644 --- a/godot/scripts/GoalTriggerBox.gd +++ b/godot/scripts/GoalTriggerBox.gd @@ -1,11 +1,11 @@ extends Area -const Loader = preload("res://scripts/LevelLoader.gd") +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/LevelLoader") + loader = get_node("/root/Game") # Called every frame. 'delta' is the elapsed time since the previous frame. @@ -18,5 +18,5 @@ func _on_Area2_body_entered(body: RigidBody): if body == null: return - loader.load_next_level() + loader.end_level() |