From 790b2360d061c9c52bdd09e6ee2bbf490f318257 Mon Sep 17 00:00:00 2001 From: HuYufei Date: Mon, 8 Jan 2024 18:45:22 +0800 Subject: [PATCH] =?UTF-8?q?update=EF=BC=9A=20=E6=9B=B4=E6=96=B0=E5=A4=AA?= =?UTF-8?q?=E6=9E=81020=20=E6=89=93=E7=82=B9=E5=80=BC=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Code/Config/GuruServicesConfig.cs | 1 + Runtime/Code/SDK/GuruSDK.cs | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/Runtime/Code/Config/GuruServicesConfig.cs b/Runtime/Code/Config/GuruServicesConfig.cs index 3428b26..bb46893 100644 --- a/Runtime/Code/Config/GuruServicesConfig.cs +++ b/Runtime/Code/Config/GuruServicesConfig.cs @@ -58,6 +58,7 @@ namespace Guru public bool enable_facebook = true; public bool enable_adjust = true; public bool enable_iap = false; + public double tch020_val = 0; } [Serializable] diff --git a/Runtime/Code/SDK/GuruSDK.cs b/Runtime/Code/SDK/GuruSDK.cs index 428eda7..ced581e 100644 --- a/Runtime/Code/SDK/GuruSDK.cs +++ b/Runtime/Code/SDK/GuruSDK.cs @@ -204,6 +204,12 @@ namespace Guru } } useIAP = _appServicesConfig.IsIAPEnabled(); + + if (_appServicesConfig.app_settings.tch020_val > 0) + { + Analytics.EnableTch02Event = true; + Analytics.SetTch02TargetValue(_appServicesConfig.app_settings.tch020_val); + } } // AdjustService.StartService();