9 lines
179 B
GDScript
9 lines
179 B
GDScript
extends Node
|
|
|
|
@onready var score_label: Label = $ScoreLabel
|
|
|
|
var score: int = 0
|
|
|
|
func add_score_point():
|
|
score += 1
|
|
score_label.text = "You collected " + str(score) + " coins."
|