Files
Bullosseum/levels/to_the_bear_level.gd
T
2026-09-01 21:22:16 +03:00

14 lines
343 B
GDScript

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 bear level")