xiandie/manager/deploy/scene/scene_manager.gd

8 lines
270 B
GDScript

extends Node
func pop_notification(msg: String, number := 1) -> void:
var notification_node = get_node_or_null("/root/Main/UILayer/Notification")
if notification_node:
notification_node.show_notification(msg, number)
else:
printerr("Notification node not found")