8 lines
127 B
GDScript
8 lines
127 B
GDScript
extends Area2D
|
|
|
|
@onready var game = $".."
|
|
|
|
func _on_body_entered(body):
|
|
if body.is_in_group("player"):
|
|
game.coinCollected()
|