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