Переглянути джерело

隐藏部分功能审核需要

lvjincheng 4 роки тому
батько
коміт
e39695aa2d

+ 8 - 0
Assets/BowArrow/Scripts/Components/TextAutoLanguage.cs

@@ -289,6 +289,10 @@ class LanguageDefault {
     public string text211000 = "奥运比赛专用比赛弓";
     public string text211001 = "奥运比赛专用比赛弓";
     public string text211002 = "奥运比赛专用比赛箭";
+
+    //审核时用到的临时文字-设置页面
+    public string text1234560 = "基础设置";
+    public string text1234561 = "退出应用";
 }
 class LanguageEnglish : LanguageDefault {
     public new string text1 = "Name :";
@@ -466,4 +470,8 @@ class LanguageEnglish : LanguageDefault {
     public new string text211000 = "Special bow for Olympic Games.";
     public new string text211001 = "Special bow for Olympic Games.";
     public new string text211002 = "Special competition arrow for Olympic Games.";
+
+    //审核时用到的临时文字-设置页面
+    public new string text1234560 = "Base Settings";
+    public new string text1234561 = "Quit App";
 }

+ 5 - 0
Assets/BowArrow/Scripts/Manager/LoginView/LoginView.cs

@@ -33,6 +33,11 @@ public class LoginView : MonoBehaviour
     public static LoginView ins;
     void Awake() {
         ins = this;
+        if (CommonConfig.needToExamine) {
+            transform.Find("BtnTabSwitch/LoginPhone").gameObject.SetActive(false); //隐藏手机登录
+            transform.Find("BtnForgetPWD").gameObject.SetActive(false); //隐藏忘记密码
+            transform.Find("Logo/Layout/Text1").gameObject.SetActive(false);
+        }
     }
 
     void Start()

+ 4 - 3
Assets/BowArrow/Scripts/View/HomeView.cs

@@ -16,9 +16,10 @@ public class HomeView : MonoBehaviour
 
     void Awake() {
         if (CommonConfig.needToExamine) {
-            GameObject.Find("LeftPanel/Item (1)").gameObject.SetActive(false);
-            GameObject.Find("RightPanel/Item/Text").GetComponent<Text>().text = "开始射箭";
-            GameObject.Find("RightPanel/Item (1)/Text").GetComponent<Text>().text = "联机射箭";
+            transform.Find("LeftPanel/Item (1)").gameObject.SetActive(false);
+            transform.Find("RightPanel/Item/Text").GetComponent<Text>().text = "开始射箭";
+            transform.Find("RightPanel/Item (1)/Text").GetComponent<Text>().text = "联机射箭";
+            transform.Find("RightPanel/Item (3)").gameObject.SetActive(false);
         }
     }
 

+ 7 - 0
Assets/BowArrow/Scripts/View/SetUpView1.cs

@@ -6,6 +6,13 @@ using UnityEngine.SceneManagement;
 /* 设置界面1 */
 public class SetUpView1 : MonoBehaviour
 {
+    void Awake() {
+        if (CommonConfig.needToExamine) {
+            transform.Find("Items/GameSetup").GetComponentInChildren<TextAutoLanguage>().SetText(1234560);
+            transform.Find("BtnQuitGame").GetComponentInChildren<TextAutoLanguage>().SetText(1234561);
+        }
+    }
+
     public void GoToGameSetupView() {
         AudioMgr.ins.PlayBtn();
         GameObject.Instantiate(Resources.Load<GameObject>("Prefabs/Views/SetUpView"), Vector3.zero, new Quaternion());