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 }