13 lines
316 B
GDScript
13 lines
316 B
GDScript
extends Control
|
|
|
|
|
|
func update_score(new_score):
|
|
$VBoxContainer/HBoxContainer/Score.text = str(new_score)
|
|
|
|
|
|
func set_next_shape(shape_scene):
|
|
for child in $VBoxContainer/HBoxContainer/NextShape/Origin.get_children():
|
|
child.free()
|
|
|
|
$VBoxContainer/HBoxContainer/NextShape/Origin.add_child(shape_scene.instance())
|