godot-psd-training/trainings/stepJudgment.gd
2024-05-14 14:13:17 +08:00

26 lines
454 B
GDScript

extends Node
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_button_button_down():
$MarginContainer.hide()
func showError():
$MarginContainer.show()
$Timer.start()
func hideError():
$MarginContainer.hide()
func _on_timer_timeout():
$MarginContainer.hide()