platformer-game-test/src/HUD/PopupMessage.gd

10 lines
175 B
GDScript3
Raw Normal View History

extends Node2D
export var text := "This is a sample text"
func _ready() -> void:
$CanvasLayer/Control/TextureRect/RichTextLabel.text = text
func dismiss():
queue_free()