using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AddressableAssets; using UnityEngine.UIElements; namespace BITKit.UX { [System.Serializable] public record AlertMessage { public string title = "Alert"; public string message = "message"; } public static class Alert { public static void Print(AlertMessage message) { UXAlert.Singleton.PrintAlertMessage(message); } } public class UXAlert : MonoBehaviour { internal static UXAlert Singleton; [SerializeField] private UIDocument document; Label titleLabel; Label contextLabel; Button comfirmButton; private void Awake() { Singleton = this; var container = document.rootVisualElement; titleLabel = container.Q