Lobby level gates trigger areas
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user