12 lines
223 B
GDScript
12 lines
223 B
GDScript
extends Control
|
|
|
|
signal new_game
|
|
|
|
func set_score(amount: int):
|
|
$Container/Score.text = "Score: " + str(amount)
|
|
|
|
func _ready():
|
|
$"Container/New Game".pressed.connect(_emit_new)
|
|
|
|
func _emit_new():
|
|
emit_signal("new_game")
|