godot-ultimate-tutorial/scenes/objects/gate.gd

7 lines
125 B
GDScript3
Raw Normal View History

2023-08-15 20:51:29 +00:00
extends StaticBody2D
signal player_entered_gate(body)
func _on_area_2d_body_entered(body):
player_entered_gate.emit(body)