From 966ca0fc8352d6b1a4d754debdae2a27f907d78c Mon Sep 17 00:00:00 2001 From: yangjing Date: Sat, 30 Apr 2022 01:23:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Init/InitLogic.cs | 2 +- .../ToukaGames/AnalyticsScripts/SDKInnerScripts/TGTools.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/Init/InitLogic.cs b/Assets/Scripts/Init/InitLogic.cs index 603bffc2..63b5d8ab 100644 --- a/Assets/Scripts/Init/InitLogic.cs +++ b/Assets/Scripts/Init/InitLogic.cs @@ -16,7 +16,7 @@ public class InitLogic : MonoBehaviour EnterGame(); #elif IOS_CN TGTools.Instance.onAgreeHander += ShowAntiAddiction; - TGTools.Instance.ShowUserAgreementView("卡通剧情", "8"); + TGTools.Instance.ShowUserAgreementView("卡通剧情", "8", "https://www.toukagame.com/PrivacyPolicy.html", "https://toukagame.com/agreement.html"); #endif } diff --git a/Assets/Scripts/ToukaGames/AnalyticsScripts/SDKInnerScripts/TGTools.cs b/Assets/Scripts/ToukaGames/AnalyticsScripts/SDKInnerScripts/TGTools.cs index ce1ed753..aadf6817 100644 --- a/Assets/Scripts/ToukaGames/AnalyticsScripts/SDKInnerScripts/TGTools.cs +++ b/Assets/Scripts/ToukaGames/AnalyticsScripts/SDKInnerScripts/TGTools.cs @@ -64,7 +64,7 @@ public class TGTools : ToukaSingletonMonoBehaviour ); //用户协议弹框 [DllImport("__Internal")] - private static extern void showUserAgreementView(string contentType,string ageType); + private static extern void showUserAgreementView(string contentType,string ageType,string privacy ,string termofservice); #endif #endif @@ -253,14 +253,14 @@ public void SetDefaults(string defaults) /** * age : 8、12、16、18 */ - public void ShowUserAgreementView(string contentType, string ageType) + public void ShowUserAgreementView(string contentType, string ageType, string privacy, string termofservice) { #if UNITY_IPHONE && !UNITY_EDITOR && !NO_SDK && IOS_CN userAgreementDelegate handler = new userAgreementDelegate(userAgreementAgreeHandle); IntPtr userAgree = Marshal.GetFunctionPointerForDelegate(handler); //调用OC的方法,将C#的回调方法函数指针传给OC userAgreementAgreeCallback(userAgree); - showUserAgreementView(contentType,ageType); + showUserAgreementView(contentType,ageType,privacy,termofservice); #endif }