cosmic/scripts/Bounty.gd
Алкесей Мирнеков 3411c5796d
Initial commit (1/2)
2023-11-05 16:23:18 +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()