Exemplo 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);
 }
Exemplo n.º 2
0
        public static void Show(string content, float showTime = 2)
        {
            ToastMsgInfo info = new ToastMsgInfo {
                Content = content, ShowTime = showTime
            };

            sendMsgToToastUIForm(info);
        }
Exemplo 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);
        }