Ejemplo n.º 1
0
        public static void ShowToast(string message, ToastDuration duration = ToastDuration.Short)
        {
            CheckInstance();

            ToastsQueue.Enqueue(ToastStructure.CreateToast(message, duration));
            if (toastCoroutine == null)
            {
                toastCoroutine = Instance.StartCoroutine(ShowToastsQueueCoroutine());
            }
        }