コード例 #1
0
ファイル: SDKManager.cs プロジェクト: yclooc/MyUnityFrameWork
        /// <summary>
        /// 数据上报
        /// </summary>
        /// <param name="data"></param>
        public static void Log(string eventID, Dictionary <string, string> data)
        {
            if (s_useNewSDKManager)
            {
                SDKManagerNew.Log(eventID, data);
            }
            else
            {
                if (s_logServiceList == null)
                {
                    throw new Exception("logServiceList is null ,please check SDKManager Init");
                }

                for (int i = 0; i < s_logServiceList.Count; i++)
                {
                    try
                    {
                        s_logServiceList[i].Log(eventID, data);
                    }
                    catch (Exception e)
                    {
                        Debug.LogError("SDKManager Log Exception: " + e.ToString());
                    }
                }
            }
        }
コード例 #2
0
        /// <summary>
        /// 数据上报
        /// </summary>
        /// <param name="data"></param>
        public static void Log(string eventID, Dictionary <string, string> data)
        {
            CheckInit();

            if (s_useNewSDKManager)
            {
                SDKManagerNew.Log(eventID, data);
            }

            for (int i = 0; i < s_logServiceList.Count; i++)
            {
                try
                {
                    s_logServiceList[i].Log(eventID, data);
                }
                catch (Exception e)
                {
                    Debug.LogError("SDKManager Log Exception: " + e.ToString());
                }
            }
        }