10 lines
172 B
GDScript
10 lines
172 B
GDScript
extends Node
|
|
@export var points:int
|
|
|
|
@onready var star_score = get_node("../Hud/ScoreLabel")
|
|
|
|
func add_points():
|
|
points += 1
|
|
print(points)
|
|
star_score.text = str(points)
|