Lobby level gates trigger areas

This commit is contained in:
2026-09-01 21:22:16 +03:00
parent 271be0b26b
commit 76d4fee33c
11 changed files with 105 additions and 146 deletions
+13
View File
@@ -0,0 +1,13 @@
extends Area3D
func _ready() -> void:
# Connect the signal via code
body_entered.connect(_on_body_entered)
func _on_body_entered(body: Node3D) -> void:
print("Something entered the trigger: ", body.name)
# Check if the colliding object is the player
if body.is_in_group("player"):
#CHANGE TO BEAR LEVEL
print("go to arena level")