Files
brackeys-knight/scripts/coin.gd

7 lines
99 B
GDScript

extends Area2D
func _on_body_entered(_body: Node2D) -> void:
print("Plus 1 coin")
queue_free()