|
|
@@ -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);
|