diff --git a/Runtime/Code/Config/GuruSDKInitConfig.cs b/Runtime/Code/Config/GuruSDKInitConfig.cs index b708364..df86a33 100644 --- a/Runtime/Code/Config/GuruSDKInitConfig.cs +++ b/Runtime/Code/Config/GuruSDKInitConfig.cs @@ -48,8 +48,8 @@ namespace Guru /// /// 支付初始化Keys /// - public byte[] GoogleKeys; - public byte[] AppleRootCerts; + public byte[] GoogleKeys; // 数据取自 GooglePlayTangle.Data(); + public byte[] AppleRootCerts; // 数据取自 AppleTangle.Data(); #region Initialization diff --git a/Runtime/Code/SDK/GuruSDK.Analytics.cs b/Runtime/Code/SDK/GuruSDK.Analytics.cs index ef2b9cc..938c028 100644 --- a/Runtime/Code/SDK/GuruSDK.Analytics.cs +++ b/Runtime/Code/SDK/GuruSDK.Analytics.cs @@ -62,13 +62,13 @@ namespace Guru /// /// 游戏启动打点 /// - /// - /// - /// - /// - /// - /// - /// + /// 关卡Id + /// 关卡名称: main_01_9001, daily_challenge_81011 + /// 关卡类型: 主线:main + /// 配置/谜题/图片/自定义Id: 101120 + /// 关卡开始类型: play:开始游戏;replay:重玩;continue:继续游戏 + /// 是否重新开始: true/false + /// 扩展数据 public static void LogLevelStart(int levelId, string startType = EventLevelStartModePlay, string levelType = LevelTypeMain, string levelName = "", string puzzleId = "", bool isReplay = false, Dictionary extra = null) @@ -83,7 +83,7 @@ namespace Guru } /// - /// 游戏点击 Continue 重开始游戏 + /// 游戏点击 Continue 继续游戏 /// /// /// @@ -97,7 +97,7 @@ namespace Guru } /// - /// 游戏点击 Continue 重开始游戏 + /// 游戏点击 Replay 重玩关卡 /// /// /// @@ -110,8 +110,17 @@ namespace Guru } /// - /// 游戏胜利打点 + /// 关卡结束打点 /// + /// 关卡Id + /// success:成功;fail:失败;exit:退出;timeout:超时;replay:重玩... + /// 关卡类型: 主线:main + /// 关卡名称: main_01_9001, daily_challenge_81011 + /// 配置/谜题/图片/自定义Id: 101120 + /// 关卡完成时长(单位:毫秒) + /// 步数(有则上报) + /// 分数(有则上报) + /// 扩展数据 public static void LogLevelEnd(int levelId, string result = EventLevelEndSuccess, string levelType = LevelTypeMain, string levelName = "", string puzzleId = "", int? duration = null, int? step = null, int? score = null, Dictionary extra = null ) @@ -193,6 +202,7 @@ namespace Guru /// /// /// + /// 扩展数据 public static void LogLevelUp(int playerLevel, string playerName, Dictionary extra = null) { if (!IsInitialSuccess) @@ -207,6 +217,7 @@ namespace Guru /// 玩家解锁成就 /// /// + /// 扩展数据 public static void LogAchievement(string achievementName, Dictionary extra = null) { if (!IsInitialSuccess) @@ -376,17 +387,18 @@ namespace Guru //---------------------------------------- EARN ---------------------------------------- /// + /// 基础收入接口. 可直接调用此接口上报相关参数 /// 获取虚拟货币/道具. /// 基础接口, 不推荐项目组直接调用 /// 请直接调用其他对应场景的统计接口 /// - /// - /// - /// - /// - /// - /// - /// + /// 货币名称 + /// 货币增加值 10 + /// 结算后货币总量 20 -> 30 + /// 消耗类型, 默认值请赋 reward + /// 当前关卡或者人物等级名称 + /// 购买道具名称 + /// 购买场景如 Store, Workbench, Sign, Ads.... public static void EarnVirtualCurrency(string currencyName, int value, int balance, string category = "", string itemName = "", @@ -598,24 +610,22 @@ namespace Guru } - //---------------------------------------- EARN ---------------------------------------- + //---------------------------------------- SPEND ---------------------------------------- /// - /// 花费虚拟货币/道具 + /// 基础花费虚拟货币/道具 /// 基础接口, 不推荐项目组直接调用 /// 请直接调用其他对应场景的统计接口 /// - /// - /// - /// - /// - /// - /// - /// - public static void SpendVirtualCurrency(string currencyName, - int value, int balance, - string category = "", string itemName = "", + /// 货币名称 + /// 货币消耗值 10 + /// 结算后货币总量 30 -> 20 + /// 消耗类型, 默认值请赋 reward + /// 当前关卡或者人物等级名称 + /// 购买道具名称 + /// 购买场景如 Store, Workbench, Sign, Ads.... + public static void SpendVirtualCurrency(string currencyName, int value, int balance, string category = "", string itemName = "", string levelName = "", string scene = "", Dictionary extra = null) { Analytics.SpendVirtualCurrency(currencyName, value, balance, category, itemName, levelName, scene, extra);