7 lines
154 B
GDScript3
7 lines
154 B
GDScript3
|
|
extends Node3D
|
||
|
|
|
||
|
|
signal leave_room
|
||
|
|
|
||
|
|
func _ready() -> void:
|
||
|
|
%PlayerDetect.body_entered.connect(func(body): if body is PlayerController: leave_room.emit())
|