diff --git a/Assets/Scripts/GameInit/UpdateMsgBox.cs b/Assets/Scripts/GameInit/UpdateMsgBox.cs index db2c617b0b..3dbd5aba91 100644 --- a/Assets/Scripts/GameInit/UpdateMsgBox.cs +++ b/Assets/Scripts/GameInit/UpdateMsgBox.cs @@ -247,7 +247,7 @@ namespace GameLogic { /// /// /// - public void ShowProto(string strL, string strR, UnityAction action) + public void ShowProto(string strL, string strR, string msg, UnityAction action) { this.gameObject.SetActive(true); this.msg.gameObject.SetActive(false); @@ -259,6 +259,8 @@ namespace GameLogic { this.buttonLText.text = strL; this.buttonRText.text = strR; this.action = action; + //设置显示内容 + this.proto.GetComponent().text = msg; } /// /// 显示权限申请 @@ -266,7 +268,7 @@ namespace GameLogic { /// /// /// - public void ShowGrant(string strC, UnityAction action) + public void ShowGrant(string strC, string msg, UnityAction action) { this.gameObject.SetActive(true); this.msg.gameObject.SetActive(false); @@ -277,6 +279,8 @@ namespace GameLogic { this.buttonC.gameObject.SetActive(true); this.buttonCText.text = strC; this.action = action; + //设置显示内容 + this.grant.transform.Find("Scroll View/Viewport/Text").GetComponent().text = msg; } } diff --git a/Assets/Scripts/GameInit/UpdatePanel.cs b/Assets/Scripts/GameInit/UpdatePanel.cs index 144c3360bb..f6bca1d176 100644 --- a/Assets/Scripts/GameInit/UpdatePanel.cs +++ b/Assets/Scripts/GameInit/UpdatePanel.cs @@ -141,11 +141,24 @@ namespace GameLogic return; } // 没同意则弹窗提示 - msgBox.ShowProto("不同意", "同意", (r1) => + string proto = "在您使用我们(猕猴桃)的服务前,请您务必审慎阅读、" + + "充分理解猕猴桃用户协议和猕猴桃隐私政策的各条款。" + + "同时,您应特别注意前述协议中免除或者限制我们责任的条款、对您权利进行限制的、约定争议解决方式和司法管辖的条款。" + + "如您已经详细阅读并同意猕猴桃用户协议和猕猴桃隐私政策," + + "请点击“同意”开始使用我们的服务。"; + msgBox.ShowProto("不同意", "同意", proto, (r1) => { if (r1 == 1) { - msgBox.ShowGrant("确定", (result) => + string grant = "为确保您的游戏体验,我们将在您使用我们的服务过程中申请以下权限,届时您可以选择同意或者拒绝开启相关权限,若是拒绝则会影响部分功能:" + + "\n\n" + + " 储存权限 " + + "我们访问您的储存权限是为了向您提供游戏截图保存功能" + + "\n\n" + + " 电话权限 " + + "我们访问您的电话权限是为了分析游戏的运行状态,优化游戏体验"; + + msgBox.ShowGrant("确定", grant,(result) => { PlayerPrefs.SetInt("APP_IsAgreeUser", 1); if (a != null)