cosmic/scripts/objects/Bounty.gd
2023-11-05 21:51:47 +03:00

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()