Esempio n. 1
0
 private static void sendMsgToToastUIForm(ToastMsgInfo info)
 {
     if (!UIManager.Instance.IsOpen(UIFormNames.TOAST_UIFORM))
     {
         UIManager.Instance.OpenUIForms(UIFormNames.TOAST_UIFORM);
     }
     UIManager.Instance.SendMessageToUIForm(UIFormNames.TOAST_UIFORM, UIDefine.TOAST_INFO_MSG, info);
 }
Esempio n. 2
0
        public static void Show(string content, float showTime = 2)
        {
            ToastMsgInfo info = new ToastMsgInfo {
                Content = content, ShowTime = showTime
            };

            sendMsgToToastUIForm(info);
        }
Esempio n. 3
0
        public static void Show(string content, string prefab, Vector3 position, float showTime = 2)
        {
            ToastMsgInfo info = new ToastMsgInfo {
                Content = content, Prefab = prefab, Position = position, ShowTime = showTime
            };

            sendMsgToToastUIForm(info);
        }