11 lines
216 B
GDScript
11 lines
216 B
GDScript
extends CanvasLayer
|
|
class_name HUD
|
|
|
|
export var coins_amount:int = 0
|
|
onready var Lable = get_node("CoinsContainer/Label")
|
|
|
|
|
|
func on_coin_collected(amount:int):
|
|
coins_amount += amount
|
|
Lable.text = str(coins_amount)
|