14 lines
343 B
GDScript
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")
|