コード例 #1
0
        /// <summary>
        ///  只上报一次事件
        /// </summary>
        public void OnEventOnlyOnce(string event_id, string label, int n)
        {
            GameFramework.CLog.Log($"调用代理层onEventOnlyOnce:event_id[{event_id}]label[{label}]n[{n}]");

        #if JumpSDK || UNITY_EDITOR
        #elif UNITY_ANDROID
            ReportAndroid.OnEventOnlyOnce(event_id, label, n);
        #elif UNITY_IOS
            ReportIOS.OnEventOnlyOnce(event_id, label, n);
        #endif
        }
コード例 #2
0
        /// <summary>
        /// 时长统计 事件ID 事件Label 时长单位毫秒
        /// </summary>
        public void OnEventDuration(string event_id, string label, int ms)
        {
            GameFramework.CLog.Log($"调用代理层onEventDuration:event_id[{event_id}]label[{label}]ms[{ms}]");

        #if JumpSDK || UNITY_EDITOR
        #elif UNITY_ANDROID
            ReportAndroid.OnEventDuration(event_id, label, ms);
        #elif UNITY_IOS
            ReportIOS.OnEventDuration(event_id, label, ms);
        #endif
        }