16 lines
374 B
GDScript
16 lines
374 B
GDScript
extends Control
|
|
var text : String = "-1" :
|
|
set(value):
|
|
text = str(value)
|
|
$Label.text = text
|
|
print("Text :", $Label.text)
|
|
|
|
func _ready() -> void:
|
|
_animate()
|
|
|
|
func _animate() -> void:
|
|
$Label/AnimationPlayer.play("in")
|
|
await $Label/AnimationPlayer.animation_finished
|
|
$Label/AnimationPlayer.play("out")
|
|
await $Label/AnimationPlayer.animation_finished
|
|
queue_free()
|