9 lines
174 B
GDScript3
9 lines
174 B
GDScript3
|
|
extends Node
|
||
|
|
|
||
|
|
signal touched_player
|
||
|
|
|
||
|
|
func _on_area_2d_body_entered(body: Node2D) -> void:
|
||
|
|
if body is Player:
|
||
|
|
touched_player.emit()
|
||
|
|
pass # Replace with function body.
|