11 lines
190 B
GDScript
11 lines
190 B
GDScript
extends TextureRect
|
|
var num:int=1
|
|
signal pressed(n:int)
|
|
func set_num(n:int):
|
|
$Label.text=n
|
|
num=n
|
|
|
|
func _on_button_pressed() -> void:
|
|
pressed.emit(num)
|
|
pass # Replace with function body.
|