mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-28 18:34:18 +00:00
15 lines
225 B
GDScript
15 lines
225 B
GDScript
extends Node2D
|
|
class_name Game
|
|
|
|
|
|
@onready var button_spawner = $ButtonSpawner
|
|
|
|
|
|
func trigger_spawn():
|
|
button_spawner.spawn()
|
|
|
|
|
|
signal score_changed(total: int)
|
|
|
|
func _on_score_changed(total: int):
|
|
score_changed.emit(total)
|