11 lines
190 B
GDScript3
11 lines
190 B
GDScript3
|
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.
|