Browse Source

审核功能修正

lvjincheng 3 years ago
parent
commit
ab4bdfdafe

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

@@ -307,6 +307,8 @@ class LanguageDefault {
     //审核时用到的临时文字-设置页面
     public string text1234560 = "基础设置";
     public string text1234561 = "退出应用";
+    public string text1234562 = "开始";
+    public string text1234563 = "联机";
 }
 class LanguageEnglish : LanguageDefault {
     public new string text1 = "Name :";
@@ -507,4 +509,6 @@ class LanguageEnglish : LanguageDefault {
     //审核时用到的临时文字-设置页面
     public new string text1234560 = "Base Settings";
     public new string text1234561 = "Quit App";
+    public new string text1234562 = "Start";
+    public new string text1234563 = "Online";
 }

+ 2 - 2
Assets/BowArrow/Scripts/View/HomeView.cs

@@ -17,8 +17,8 @@ public class HomeView : MonoBehaviour
     void Awake() {
         if (CommonConfig.needToExamine) {
             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/Text").GetComponent<TextAutoLanguage>().SetText(1234562);
+            transform.Find("RightPanel/Item (1)/Text").GetComponent<TextAutoLanguage>().SetText(1234563);
             transform.Find("RightPanel/Item (3)").gameObject.SetActive(false);
         }
     }