From 6779c6ef73d5cd836f77f11012c0134154a1004c Mon Sep 17 00:00:00 2001 From: huyufei Date: Tue, 21 May 2024 10:22:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=81=A2=E5=A4=8D=E9=87=91=E5=B8=81?= =?UTF-8?q?=E6=80=BB=E9=87=8F=E4=B8=8A=E6=8A=A5=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Code/SDK/GuruSDK.Analytics.cs | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/Runtime/Code/SDK/GuruSDK.Analytics.cs b/Runtime/Code/SDK/GuruSDK.Analytics.cs index 315d057..f676b00 100644 --- a/Runtime/Code/SDK/GuruSDK.Analytics.cs +++ b/Runtime/Code/SDK/GuruSDK.Analytics.cs @@ -283,17 +283,29 @@ namespace Guru { SetUserProperty(Analytics.PropertyPlay, $"{bplay}"); } - - // public static void SetUserTotalCoins(int totalCoins) - // { - // SetUserProperty(Analytics.PropertyCoin, $"{totalCoins}"); - // } + /// + /// 上报用户全部的 Coin (当前值) + /// + /// + public static void SetUserTotalCoins(int totalCoins) + { + SetUserProperty(Analytics.PropertyCoin, $"{totalCoins}"); + } + + /// + /// 上报用户免费金币的 数量 (累加值) + /// + /// public static void SetUserFreeCoins(int freeCoins) { SetUserProperty(Analytics.PropertyNonIAPCoin, $"{freeCoins}"); } + /// + /// 上报用户付费金币的 数量 (累加值) + /// + /// public static void SetUserPaidCoins(int paidCoins) { SetUserProperty(Analytics.PropertyIAPCoin, $"{paidCoins}");