godot-ultimate-tutorial/scenes/objects/gate.gd
2023-08-15 22:51:29 +02:00

7 lines
125 B
GDScript

extends StaticBody2D
signal player_entered_gate(body)
func _on_area_2d_body_entered(body):
player_entered_gate.emit(body)