StoryChapterView.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. using FairyGUI;
  2. using UI.CommonGame;
  3. using UI.Main;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. using System.Collections;
  7. namespace GFGGame
  8. {
  9. public class StoryChapterView : BaseView
  10. {
  11. private UI_StoryChapterUI _ui;
  12. private int _chapterID;
  13. private GComponent _compChapter;
  14. private ValueBarController _valueBarController;
  15. private GObject _unPasslevelItem;
  16. private GObject _endLevelItem;
  17. private EffectUI _effectUI1;
  18. private GComponent _comEff;
  19. private int currentDifficulty;
  20. public override void Dispose()
  21. {
  22. EffectUIPool.Recycle(_effectUI1);
  23. _effectUI1 = null;
  24. if (_comEff != null)
  25. {
  26. _comEff.RemoveFromParent();
  27. _comEff.Dispose();
  28. }
  29. if (_valueBarController != null)
  30. {
  31. _valueBarController.Dispose();
  32. _valueBarController = null;
  33. }
  34. if (_ui != null)
  35. {
  36. _ui.Dispose();
  37. _ui = null;
  38. }
  39. base.Dispose();
  40. }
  41. protected override void Init()
  42. {
  43. base.Init();
  44. _ui = UI_StoryChapterUI.Create();
  45. viewCom = _ui.target;
  46. isfullScreen = true;
  47. isReturnView = true;
  48. }
  49. protected override void OnInit()
  50. {
  51. base.OnInit();
  52. _valueBarController = new ValueBarController(_ui.m_valueBar);
  53. _ui.m_btnBack.onClick.Add(OnClickBtnBack);
  54. _ui.m_btnHome.onClick.Add(OnClickBtnHome);
  55. _ui.m_switchChapter.onClick.Add(OnClickSwitchBack);
  56. _ui.m_chapter.m_compChapterScroll.m_imgBegin.onClick.Add(OnClickNext);
  57. _ui.m_bonusBox1.target.onClick.Add(() =>
  58. {
  59. OnClickBonusBox(_ui.m_bonusBox1, 0);
  60. });
  61. _ui.m_bonusBox2.target.onClick.Add(() =>
  62. {
  63. OnClickBonusBox(_ui.m_bonusBox2, 1);
  64. });
  65. _ui.m_bonusBox3.target.onClick.Add(() =>
  66. {
  67. OnClickBonusBox(_ui.m_bonusBox3, 2);
  68. });
  69. _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("zxian_bg3");
  70. _comEff = new GComponent();
  71. _comEff = UIPackage.CreateObject(UI_MainUI.PACKAGE_NAME, "ComEff").asCom;
  72. _effectUI1 = EffectUIPool.CreateEffectUI(_comEff.GetChild("holder").asGraph, "ui_gk", "ui_gk_sg");
  73. }
  74. protected override void AddEventListener()
  75. {
  76. EventAgent.AddEventListener(ConstMessage.NOTICE_MAINSTORY_BOXBONUS_STATE, UpdateBonusBox);
  77. }
  78. protected override void OnShown()
  79. {
  80. base.OnShown();
  81. _ui.target.touchable = false;
  82. MusicManager.Instance.PlayCroutine(ResPathUtil.GetMusicPath(ConstMusicName.DEFAULT));
  83. if ((this.viewData as object[]) != null)
  84. {
  85. _chapterID = (int)(this.viewData as object[])[0];
  86. currentDifficulty = (int)(this.viewData as object[])[1];
  87. }
  88. else
  89. {
  90. _chapterID = (int)this.viewData;
  91. }
  92. MainStoryDataManager.currentChapterCfgId = _chapterID;
  93. Timers.inst.StartCoroutine(InitChapter());
  94. _valueBarController.OnShown();
  95. _ui.target.touchable = true;
  96. Timers.inst.AddUpdate(CheckGuide);
  97. int chapterNum = StoryChapterCfgArray.Instance.GetCfgsBysubType(currentDifficulty).Count;
  98. if (MainStoryDataManager.CurrentChapterOrder == chapterNum)
  99. {
  100. _ui.m_chapter.m_compChapterScroll.m_imgBegin.visible = false;
  101. }
  102. else
  103. {
  104. _ui.m_chapter.m_compChapterScroll.m_imgBegin.visible = true;
  105. }
  106. }
  107. protected override void OnHide()
  108. {
  109. base.OnHide();
  110. _unPasslevelItem = null;
  111. _endLevelItem = null;
  112. // _ui.m_chapter.RemoveChildren(0, 0, true);
  113. _valueBarController.OnHide();
  114. Timers.inst.Remove(CheckGuide);
  115. }
  116. protected override void RemoveEventListener()
  117. {
  118. base.RemoveEventListener();
  119. EventAgent.RemoveEventListener(ConstMessage.NOTICE_MAINSTORY_BOXBONUS_STATE, UpdateBonusBox);
  120. }
  121. private void OnClickBtnBack()
  122. {
  123. //ViewManager.GoBackFrom(typeof(StoryChapterView).FullName);
  124. GameController.GoBackToMainView();
  125. }
  126. private void OnClickSwitchBack()
  127. {
  128. ViewManager.Show<StoryChapterListView>( null, new object[] { typeof(StoryChapterView).FullName, this.viewData });
  129. }
  130. private void OnClickBtnHome()
  131. {
  132. GameController.GoBackToMainView();
  133. }
  134. private void OnClickNext()
  135. {
  136. if (MainStoryDataManager.CheckChapterUnlock(_chapterID+1))
  137. {
  138. ViewManager.Show<StoryChapterView>(new object[] { _chapterID+1, currentDifficulty });
  139. }
  140. else
  141. {
  142. PromptController.Instance.ShowFloatTextPrompt("需通关前置关卡");
  143. }
  144. }
  145. private IEnumerator InitChapter()
  146. {
  147. StoryChapterCfg chapterCfg = StoryChapterCfgArray.Instance.GetCfg(_chapterID);
  148. _ui.m_txtChapterName0.text = chapterCfg.name.Length > 0 ? chapterCfg.name[0].ToString() : "";
  149. _ui.m_txtChapterName1.text = chapterCfg.name.Length > 1 ? chapterCfg.name[1].ToString() : "";
  150. _ui.m_txtChapterName2.text = chapterCfg.name.Length > 2 ? chapterCfg.name[2].ToString() : "";
  151. _ui.m_txtChapterName3.text = chapterCfg.name.Length > 3 ? chapterCfg.name[3].ToString() : "";
  152. _ui.m_txtChapterName4.text = chapterCfg.name.Length > 4 ? chapterCfg.name[4].ToString() : "";
  153. int order = StoryUtil.GetChapterOrder(chapterCfg.id);
  154. _ui.m_txtChapter.text = order < 10 ? "0" + order : order.ToString();
  155. int starCountChapter = InstanceZonesDataManager.GetChapterStarCount(_chapterID, chapterCfg.type, chapterCfg.subType);
  156. _ui.m_txtStarCount.text = "" + starCountChapter + "/" + chapterCfg.bonusStar3;
  157. UpdateBonusBoxName(_ui.m_bonusBox1, "" + chapterCfg.bonusStar1);
  158. UpdateBonusBoxName(_ui.m_bonusBox2, "" + chapterCfg.bonusStar2);
  159. UpdateBonusBoxName(_ui.m_bonusBox3, "" + chapterCfg.bonusStar3);
  160. UpdateBonusBox();
  161. var list = StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(chapterCfg.type, chapterCfg.subType, chapterCfg.id);
  162. int endLevel = 0;
  163. int UnlockCount = 0;
  164. _compChapter = _ui.m_chapter.m_compChapterScroll.target;
  165. float starPosY = _ui.m_chapter.m_compChapterScroll.m_imgBegin.y;
  166. int lineGap = 4500 / list.Count;
  167. _comEff.visible = false;
  168. for (int i = 0; i < 20; i++)
  169. {
  170. GObject obj = _ui.m_chapter.m_compChapterScroll.target.GetChild("g" + (19 - i + 1));
  171. obj.SetPosition(obj.x, starPosY - lineGap * i - 300, 0); ;
  172. StoryLevelCfg levelCfg = i < list.Count ? list[i] : null;
  173. UI_CompStoryLevelItem levelItem = UI_CompStoryLevelItem.Proxy(obj);
  174. if (levelCfg != null && MainStoryDataManager.CheckLevelUnlock(levelCfg.id))
  175. {
  176. UnlockCount++;
  177. levelItem.target.data = levelCfg.id;
  178. levelItem.target.visible = true;
  179. levelItem.target.onClick.Clear();
  180. levelItem.target.onClick.Add(OnClickLevelItem);
  181. string showId = StoryUtil.GetChapterOrder(_chapterID) + "-" + levelCfg.order;
  182. levelItem.m_txtDialogOrder.text = showId;
  183. levelItem.m_txtFightOrder.text = showId;
  184. if (levelCfg.fightID.Length > 0)
  185. {
  186. levelItem.m_c1.selectedIndex = 1;
  187. int score = InstanceZonesDataManager.GetScoreHighest(levelCfg.id);
  188. if (score <= 0)
  189. {
  190. levelItem.m_flower.target.visible = false;
  191. }
  192. else
  193. {
  194. levelItem.m_flower.target.visible = true;
  195. int starCount = InstanceZonesDataManager.GetStarCountHistory(levelCfg.id);
  196. StoryUtil.UpdateStar(starCount, levelItem.m_flower.target);
  197. }
  198. }
  199. else
  200. {
  201. levelItem.m_c1.selectedIndex = 0;
  202. levelItem.m_flower.target.visible = false;
  203. levelItem.m_txtName.text = levelCfg.name;
  204. levelItem.m_comDialogBg.m_loabg.url = ResPathUtil.GetBgImgPath(chapterCfg.bgRes);
  205. levelItem.m_comDialogBg.m_loaIcon.url = ResPathUtil.GetChapterGuideIconPath(chapterCfg.bgRes);
  206. levelItem.m_comDialogBg.m_c1.selectedIndex = Random.Range(0, 10);
  207. }
  208. //根据困难程度选择显示图片
  209. if (currentDifficulty == 1)
  210. {
  211. levelItem.m_loaDialogBg.url = "ui://Main/zxian_btn_jq_jy";
  212. levelItem.m_fightBg.url = "ui://Main/zxian_btn_zd_jy";
  213. levelItem.m_txtFightOrder.text = string.Format("{0}", StringUtil.GetColorText(showId.ToString(), "#E3F8FF"));
  214. levelItem.m_fightIconA.alpha = 0;
  215. levelItem.m_fightIconB.alpha = 0;
  216. _ui.m_txtBg.url = "ui://Main/zxian_chapter_dec_jy";
  217. _ui.m_txtChapterName0.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
  218. _ui.m_txtChapterName1.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
  219. _ui.m_txtChapterName2.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
  220. _ui.m_txtChapterName3.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
  221. _ui.m_txtChapterName4.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
  222. _ui.m_txtChapter.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
  223. }
  224. else
  225. {
  226. levelItem.m_loaDialogBg.url = "ui://Main/zxian_btn_jq";
  227. levelItem.m_fightBg.url = "ui://Main/zxian_btn_zd";
  228. levelItem.m_txtFightOrder.text = string.Format("{0}", StringUtil.GetColorText(showId.ToString(), "#FFEABF"));
  229. levelItem.m_fightIconA.alpha = 0;
  230. levelItem.m_fightIconB.alpha = 0;
  231. _ui.m_txtBg.url = "ui://Main/zxian_chapter_dec";
  232. _ui.m_txtChapterName0.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
  233. _ui.m_txtChapterName1.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
  234. _ui.m_txtChapterName2.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
  235. _ui.m_txtChapterName3.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
  236. _ui.m_txtChapterName4.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
  237. _ui.m_txtChapter.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
  238. }
  239. levelItem.m_holder.visible = !InstanceZonesDataManager.CheckLevelPass(levelCfg.id);
  240. if (!InstanceZonesDataManager.CheckLevelPass(levelCfg.id))
  241. {
  242. //设置为解锁关卡
  243. MainStoryDataManager.currentLevelCfgId = levelCfg.id;
  244. _unPasslevelItem = levelItem.target;
  245. levelItem.target.AddChild(_comEff);
  246. _comEff.visible = true;
  247. }
  248. if (levelCfg.order > endLevel)
  249. {
  250. endLevel = levelCfg.order;
  251. _endLevelItem = levelItem.target;
  252. }
  253. }
  254. else
  255. {
  256. levelItem.target.visible = false;
  257. }
  258. UI_CompStoryLevelItem.ProxyEnd();
  259. }
  260. yield return new WaitForEndOfFrame();
  261. _ui.m_chapter.m_compChapterScroll.target.y = Mathf.Max(0, _ui.m_chapter.target.height - _ui.m_chapter.m_compChapterScroll.target.height);
  262. }
  263. private void OnClickLevelItem(EventContext context)
  264. {
  265. UI_CompStoryLevelItem levelItem = UI_CompStoryLevelItem.Proxy(context.sender as GObject);
  266. int levelCfgId = (int)levelItem.target.data;
  267. UI_CompStoryLevelItem.ProxyEnd();
  268. StoryController.ShowLevelView(levelCfgId);
  269. TryCompleteGuide();
  270. }
  271. private void UpdateBonusBoxName(UI_CompBonusBox bonusBox, string name)
  272. {
  273. bonusBox.m_txtName.text = name;
  274. }
  275. private void UpdateBonusBox()
  276. {
  277. UpdateBonusBoxStatus(_ui.m_bonusBox1, 0);
  278. UpdateBonusBoxStatus(_ui.m_bonusBox2, 1);
  279. UpdateBonusBoxStatus(_ui.m_bonusBox3, 2);
  280. }
  281. private void UpdateBonusBoxStatus(UI_CompBonusBox bonusBox, int index)
  282. {
  283. int status = MainStoryDataManager.GetChapterBonusStatus(MainStoryDataManager.currentChapterCfgId, index);
  284. bonusBox.m_iconActive.visible = status == ConstBonusStatus.CAN_GET;
  285. // bonusBox.m_ComRewardEffect.visible = status == ConstBonusStatus.CAN_GET;
  286. if (status == ConstBonusStatus.GOT)
  287. {
  288. bonusBox.m_icon.url = "ui://Main/zxian_gift_get";
  289. }
  290. else
  291. {
  292. bonusBox.m_icon.url = "ui://Main/zxian_gift_unget";
  293. }
  294. bonusBox.target.data = status;
  295. }
  296. private async void OnClickBonusBox(UI_CompBonusBox bonusBox, int index)
  297. {
  298. int status = (int)bonusBox.target.data;
  299. if (status == ConstBonusStatus.CAN_GET)
  300. {
  301. bool got = await MainStorySProxy.GetMainStoryBoxBonus(MainStoryDataManager.currentChapterCfgId, index);
  302. if (got)
  303. {
  304. List<ItemData> bonusList = MainStoryDataManager.GetChapterBonus(MainStoryDataManager.currentChapterCfgId, index);
  305. if (bonusList != null && bonusList.Count > 0)
  306. {
  307. BonusController.TryShowBonusList(bonusList);
  308. }
  309. UpdateBonusBoxStatus(bonusBox, index);
  310. }
  311. }
  312. // else if (status == ConstBonusStatus.GOT)
  313. // {
  314. // PromptController.Instance.ShowFloatTextPrompt("这个宝箱已经被领取过了");
  315. // }
  316. else
  317. {
  318. List<ItemData> rewards = StoryBonusDataCache.GetChapterBonusList(_chapterID, index);
  319. int star = StoryBonusDataCache.GetChapterBonusStar(_chapterID, index);
  320. ViewManager.Show<RewardPreView>(new object[] { rewards, "宝箱奖励", string.Format("本章达成{0}星可领取", star) });
  321. // PromptController.Instance.ShowFloatTextPrompt("关卡总分不足,继续加油吧。");
  322. }
  323. }
  324. private void CheckGuide(object param)
  325. {
  326. if (GuideDataManager.IsGuideFinish(ConstGuideId.START_FIGHT) <= 0
  327. || GuideDataManager.IsGuideFinish(ConstGuideId.FREEDOM_DRESS) <= 0
  328. || GuideDataManager.IsGuideFinish(ConstGuideId.ENTER_CHAPTER) <= 0
  329. || GuideDataManager.IsGuideFinish(ConstGuideId.BUY_CLOTHING) <= 0
  330. || GuideDataManager.IsGuideFinish(ConstGuideId.UP_CARD_LV) <= 0
  331. || GuideDataManager.IsGuideFinish(ConstGuideId.ENTER_CHAPTER_1) <= 0
  332. || GuideDataManager.IsGuideFinish(ConstGuideId.ENTER_CHAPTER_2) <= 0
  333. || GuideDataManager.IsGuideFinish(ConstGuideId.ENTER_CHAPTER_3) <= 0
  334. || GuideDataManager.IsGuideFinish(ConstGuideId.ENTER_CHAPTER_4) <= 0
  335. || GuideDataManager.IsGuideFinish(ConstGuideId.ENTER_CHAPTER_5) <= 0
  336. || GuideDataManager.IsGuideFinish(ConstGuideId.UP_CARD_STAR) <= 0
  337. || GuideDataManager.IsGuideFinish(ConstGuideId.ARENA_OPEN) <= 0
  338. || GuideDataManager.IsGuideFinish(ConstGuideId.CLOTHING_DECOMPOSE) <= 0)
  339. {
  340. UpdateToCheckGuide(null);
  341. }
  342. else
  343. {
  344. Timers.inst.Remove(CheckGuide);
  345. }
  346. }
  347. protected override void UpdateToCheckGuide(object param)
  348. {
  349. if (!ViewManager.CheckIsTopView(this.viewCom)) return;
  350. GComponent unPasslevelCom = _unPasslevelItem == null ? null : _unPasslevelItem.asCom;
  351. bool isGuide0 = GuideController.TryGuide(unPasslevelCom, ConstGuideId.START_FIGHT, 1, "尝试换上一套衣服吧。");
  352. bool isGuide1 = GuideController.TryGuide(_ui.m_btnHome, ConstGuideId.FREEDOM_DRESS, 1, "获得的服饰随时可以查看和试穿。");
  353. bool isGuide2 = GuideController.TryGuide(unPasslevelCom, ConstGuideId.ENTER_CHAPTER, 5, "来继续我们的旅程吧。");
  354. GuideController.TryCompleteGuide(ConstGuideId.ENTER_CHAPTER, 5);
  355. bool isGuide3 = GuideController.TryGuide(unPasslevelCom, ConstGuideId.ENTER_CHAPTER_1, 4, "来继续我们的旅程吧。");
  356. GuideController.TryCompleteGuide(ConstGuideId.ENTER_CHAPTER_1, 4);
  357. bool isGuide4 = GuideController.TryGuide(unPasslevelCom, ConstGuideId.BUY_CLOTHING, 1, "衣服被弄脏了,到机场更衣室换身衣服吧。");
  358. bool isGuide5 = GuideController.TryGuide(_ui.m_btnHome, ConstGuideId.UP_CARD_LV, 1, "点击返回主界面。");
  359. bool isGuide6 = GuideController.TryGuide(_ui.m_btnHome, ConstGuideId.CLOTHING_DECOMPOSE, 1, "点击返回主界面。");
  360. bool isGuide7 = GuideController.TryGuide(unPasslevelCom, ConstGuideId.ENTER_CHAPTER_2, 4, "来继续我们的旅程吧。");
  361. GuideController.TryCompleteGuide(ConstGuideId.ENTER_CHAPTER_2, 4);
  362. bool isGuide8 = GuideController.TryGuide(unPasslevelCom, ConstGuideId.ENTER_CHAPTER_3, 3, "来继续我们的旅程吧。");
  363. GuideController.TryCompleteGuide(ConstGuideId.ENTER_CHAPTER_3, 3);
  364. bool isGuide10 = GuideController.TryGuide(unPasslevelCom, ConstGuideId.ENTER_CHAPTER_4, 4, "来继续我们的旅程吧。");
  365. GuideController.TryCompleteGuide(ConstGuideId.ENTER_CHAPTER_4, 4);
  366. bool isGuide11 = GuideController.TryGuide(unPasslevelCom, ConstGuideId.ENTER_CHAPTER_5, 4, "来继续我们的旅程吧。");
  367. GuideController.TryCompleteGuide(ConstGuideId.ENTER_CHAPTER_5, 4);
  368. bool isGuide9 = GuideController.TryGuide(_ui.m_btnHome, ConstGuideId.UP_CARD_STAR, 1, "点击返回主界面。");
  369. bool isGuide12 = GuideController.TryGuide(_ui.m_btnHome, ConstGuideId.ARENA_OPEN, 1, "点击返回主界面。");
  370. _ui.m_chapter.target.scrollPane.touchEffect = !isGuide0 && !isGuide1 && !isGuide2 && !isGuide3 && !isGuide4 && !isGuide5 && !isGuide6 && !isGuide7 && !isGuide8 && !isGuide9 && !isGuide10;
  371. }
  372. protected override void TryCompleteGuide()
  373. {
  374. base.TryCompleteGuide();
  375. // GuideCfg cfg = GuideCfgArray.Instance.GetCfg(ConstGuideId.ENTER_CHAPTER);
  376. GuideController.TryCompleteGuideIndex(ConstGuideId.ENTER_CHAPTER, 5);
  377. GuideController.TryCompleteGuide(ConstGuideId.ENTER_CHAPTER, 5);
  378. // GuideCfg cfg1 = GuideCfgArray.Instance.GetCfg(ConstGuideId.ENTER_CHAPTER_1);
  379. GuideController.TryCompleteGuideIndex(ConstGuideId.ENTER_CHAPTER_1, 4);
  380. GuideController.TryCompleteGuide(ConstGuideId.ENTER_CHAPTER_1, 4);
  381. // GuideCfg cfg2 = GuideCfgArray.Instance.GetCfg(ConstGuideId.ENTER_CHAPTER_2);
  382. GuideController.TryCompleteGuideIndex(ConstGuideId.ENTER_CHAPTER_2, 4);
  383. GuideController.TryCompleteGuide(ConstGuideId.ENTER_CHAPTER_2, 4);
  384. // GuideCfg cfg3 = GuideCfgArray.Instance.GetCfg(ConstGuideId.ENTER_CHAPTER_3);
  385. GuideController.TryCompleteGuideIndex(ConstGuideId.ENTER_CHAPTER_3, 3);
  386. GuideController.TryCompleteGuide(ConstGuideId.ENTER_CHAPTER_3, 3);
  387. // GuideCfg cfg4 = GuideCfgArray.Instance.GetCfg(ConstGuideId.ENTER_CHAPTER_4);
  388. GuideController.TryCompleteGuideIndex(ConstGuideId.ENTER_CHAPTER_4, 4);
  389. GuideController.TryCompleteGuide(ConstGuideId.ENTER_CHAPTER_4, 4);
  390. // GuideCfg cfg5 = GuideCfgArray.Instance.GetCfg(ConstGuideId.ENTER_CHAPTER_5);
  391. GuideController.TryCompleteGuideIndex(ConstGuideId.ENTER_CHAPTER_5, 4);
  392. GuideController.TryCompleteGuide(ConstGuideId.ENTER_CHAPTER_5, 4);
  393. }
  394. }
  395. }