예제 #1
0
    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);
    }
예제 #2
0
 private static void Prepare()
 {
     if (!isLoaded)
     {
         GameObject instance = MonoBehaviour.Instantiate(Resources.Load <GameObject> ("ToastUI"));
         instance.name = "[ TOAST UI ]";
         toastUI       = instance.GetComponent <ToastUI> ();
         isLoaded      = true;
     }
 }