소스 검색

审核功能修正

lvjincheng 4 년 전
부모
커밋
ab4bdfdafe
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 0
      Assets/BowArrow/Scripts/Components/TextAutoLanguage.cs
  2. 2 2
      Assets/BowArrow/Scripts/View/HomeView.cs

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

@@ -307,6 +307,8 @@ class LanguageDefault {
     //审核时用到的临时文字-设置页面
     //审核时用到的临时文字-设置页面
     public string text1234560 = "基础设置";
     public string text1234560 = "基础设置";
     public string text1234561 = "退出应用";
     public string text1234561 = "退出应用";
+    public string text1234562 = "开始";
+    public string text1234563 = "联机";
 }
 }
 class LanguageEnglish : LanguageDefault {
 class LanguageEnglish : LanguageDefault {
     public new string text1 = "Name :";
     public new string text1 = "Name :";
@@ -507,4 +509,6 @@ class LanguageEnglish : LanguageDefault {
     //审核时用到的临时文字-设置页面
     //审核时用到的临时文字-设置页面
     public new string text1234560 = "Base Settings";
     public new string text1234560 = "Base Settings";
     public new string text1234561 = "Quit App";
     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() {
     void Awake() {
         if (CommonConfig.needToExamine) {
         if (CommonConfig.needToExamine) {
             transform.Find("LeftPanel/Item (1)").gameObject.SetActive(false);
             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);
             transform.Find("RightPanel/Item (3)").gameObject.SetActive(false);
         }
         }
     }
     }