Quellcode durchsuchen

海外引导视频+版本记录打印

lvjincheng vor 2 Jahren
Ursprung
Commit
7326a48557

+ 1 - 0
Assets/BowArrow/Resources/app-version.txt

@@ -0,0 +1 @@
+2023-04-21-A

+ 7 - 0
Assets/BowArrow/Resources/app-version.txt.meta

@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: a4f8529a1ceb52940ac2d69607879baa
+TextScriptImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 1 - 0
Assets/BowArrow/Scripts/Components/TextAutoLanguage2/Resources/TextAutoLanguage2/cn.json

@@ -58,6 +58,7 @@
     "course_title_11": "结束动作",
     "course_title_12": "如何安装智能弓箭",
     "course_title_13": "如何使用智能弓箭",
+    "course_title_14": "如何使用智能弓箭",
     "course_btn_see": "查看",
     
     "device-calibrate_gyr-tip": "将瞄准模块从智能弓箭上拆下,将其静置在一个平面上,再点击陀螺仪初始化。",

+ 1 - 0
Assets/BowArrow/Scripts/Components/TextAutoLanguage2/Resources/TextAutoLanguage2/en.json

@@ -58,6 +58,7 @@
     "course_title_11": "Finish up job",
     "course_title_12": "How to install smart bow",
     "course_title_13": "How to use smart bow",
+    "course_title_14": "How To Use Wonder Fitter Smart Arrow",
     "course_btn_see": "see",
 
     "device-calibrate_gyr-tip": "Remove the aiming module from the smart bow and place it on a plane, and then click Gyr Init.",

+ 1 - 0
Assets/BowArrow/Scripts/Network/UserPlayer.cs

@@ -165,6 +165,7 @@ public class UserPlayer : JCEntity
         s_LogReporterInited = true;
         Object.Instantiate(Resources.Load("Prefabs/LogReporter"));
         Debug.LogWarning("在屏幕上画个圈即可打开控制台");
+        Debug.Log("app-version: " + Resources.Load<TextAsset>("app-version").text);
     } 
 
     private static void handleAuthExpire()

+ 11 - 3
Assets/BowArrow/Scripts/View/Home/CourseView.cs

@@ -8,12 +8,20 @@ public class CourseView : JCUnityLib.ViewBase, MenuBackInterface
     [SerializeField] GameObject scrollViewContent;
     [SerializeField] GameObject scrollViewContentItem;
 
-    int[] titleIds = {0, 12, 13};
+    List<int> titleIds = new List<int>();
     Dictionary<int, string> videoUrlDict = new Dictionary<int, string>();
 
     public void Awake() {
-        videoUrlDict.Add(12, "https://www.bilibili.com/video/BV1o84y1K7C9/?vd_source=b030b3eb3477713cd294deb164dcb109");        
-        videoUrlDict.Add(13, "https://www.bilibili.com/video/BV1hj411c7Mx/?vd_source=b030b3eb3477713cd294deb164dcb109");        
+        titleIds.Add(0);
+        if (CommonConfig.AppLanguage == 0) {
+            titleIds.Add(12);
+            videoUrlDict.Add(12, "https://www.bilibili.com/video/BV1o84y1K7C9/?vd_source=b030b3eb3477713cd294deb164dcb109");        
+            titleIds.Add(13);
+            videoUrlDict.Add(13, "https://www.bilibili.com/video/BV1hj411c7Mx/?vd_source=b030b3eb3477713cd294deb164dcb109");
+        } else {
+            titleIds.Add(14);
+            videoUrlDict.Add(14, "https://youtu.be/5AfYbdeFv54");
+        }        
         scrollViewContentItem.transform.Find("Icon").gameObject.SetActive(false);
         scrollViewContentItem.transform.Find("Icon-1").gameObject.SetActive(false);
         scrollViewContentItem.SetActive(false);