10 lines
165 B
GDScript
10 lines
165 B
GDScript
extends Area2D
|
|
|
|
@export var Amount: float = 20
|
|
|
|
@onready var Text = $Label
|
|
|
|
func _on_body_entered(body):
|
|
if body is MainShip:
|
|
body.Money += Amount
|
|
queue_free()
|