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