public ToastUI ShowToastText(string text, float duration, float delay) { ToastUI toastUI = UIManagerControl.Instance.OpenUI("ToastUI", UINodesManager.T2RootOfSpecial, false, UIType.NonPush) as ToastUI; toastUI.ShowText(text, duration, delay); return(toastUI); }
private static void Prepare() { if (!isLoaded) { GameObject instance = MonoBehaviour.Instantiate(Resources.Load <GameObject> ("ToastUI")); instance.name = "[ TOAST UI ]"; toastUI = instance.GetComponent <ToastUI> (); isLoaded = true; } }