6 lines
127 B
GDScript
6 lines
127 B
GDScript
extends Area2D
|
|
|
|
func _on_body_entered(body):
|
|
if body.is_in_group("Player"):
|
|
body.get_parent().Coin += 1
|
|
self.queue_free()
|