/// <summary>
 /// 发送统计数据
 /// </summary>
 public void sendInfo()
 {
     if (isSupportSendInfo)
     {
         object[] parameter = new object[] { this.guid, this.playerId, this.level, this.nickName, this.serverId };
         AllSdkStatistic.instance().callAndroidSdkStaticFunction(StatisticFunctionEnum.sendInfo.ToString(), parameter, statisticClassPath);
     }
 }
        /// <summary>
        /// 初始化统计插件
        /// </summary>
        public void initStatistic()
        {
            if (isSupportInit)
            {
#if UNITY_ANDROID
                object[] parameter = new object[] { AllSdkStatistic.instance().getMainCotext() };
                AllSdkStatistic.instance().callAndroidSdkStaticFunction(StatisticFunctionEnum.initStatistic.ToString(), parameter, statisticClassPath);
#endif
            }
        }
示例#3
0
        /// <summary>
        /// 发送统计数据
        /// </summary>
        public void sendInfo()
        {
#if UNITY_ANDROID
            if (isSupportSendInfo)
            {
                object[] parameter = new object[] { infoType, key, data };
                AllSdkStatistic.instance().callAndroidSdkStaticFunction(StatisticFunctionEnum.sendInfo.ToString(), parameter, statisticClassPath);
            }
#endif
        }
        /// <summary>
        /// 获取信息
        /// </summary>
        public string getInfo()
        {
#if UNITY_ANDROID
            if (isSupportGetInfo)
            {
                object[] parameter = new object[] { AllSdkStatistic.instance().getMainCotext() };
                return(AllSdkStatistic.instance().callAndroidSdkStaticFunctionWithReturn(StatisticFunctionEnum.getInfo.ToString(), parameter, statisticClassPath));
            }
            else
            {
                return("");
            }
#endif
            return("");
        }