10 lines
150 B
GDScript
10 lines
150 B
GDScript
extends Area2D
|
|
|
|
@onready var game = %GameManager
|
|
|
|
|
|
func _on_body_entered(body):
|
|
if body.is_in_group("player"):
|
|
game.coinCollected()
|
|
queue_free()
|