| 
					
				 | 
			
			
				@@ -114,9 +114,9 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void InitChapter() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Debug.Log("zoya000"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Debug.Log("InitChapter 000"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             StoryChapterCfg chapterCfg = StoryChapterCfgArray.Instance.GetCfg(_chapterID); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Debug.Log("zoya111"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Debug.Log("InitChapter 002"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_txtChapterName0.text = chapterCfg.name.Length > 0 ? chapterCfg.name[0].ToString() : ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_txtChapterName1.text = chapterCfg.name.Length > 1 ? chapterCfg.name[1].ToString() : ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_txtChapterName2.text = chapterCfg.name.Length > 2 ? chapterCfg.name[2].ToString() : ""; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -130,45 +130,45 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UpdateBonusBoxName(_ui.m_bonusBox2, "" + chapterCfg.bonusStar2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UpdateBonusBoxName(_ui.m_bonusBox3, "" + chapterCfg.bonusStar3); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UpdateBonusBox(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Debug.Log("zoya222"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Debug.Log("InitChapter 003"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             var list = StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(chapterCfg.type, chapterCfg.subType, chapterCfg.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Debug.Log("zoya_ 555"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Debug.Log("InitChapter_ 004"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int endLevel = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int UnlockCount = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Debug.Log("zoya_ 666"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Debug.Log("InitChapter_ 005"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _compChapter = _ui.m_chapter.m_compChapterScroll.target; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Debug.Log("zoya_ 777"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Debug.Log("InitChapter_ 006"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             float starPosY = _ui.m_chapter.m_compChapterScroll.m_imgBegin.y; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Debug.Log("zoya_ 888"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Debug.Log("InitChapter_ 007"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int lineGap = 4500 / list.Count; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             for (int i = 0; i < 20; i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                Debug.Log("zoya_ 999  _:" + i); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Debug.Log("InitChapter_ 008  _:" + i); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 GObject obj = _ui.m_chapter.m_compChapterScroll.target.GetChild("g" + (i + 1)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                Debug.Log("zoya_ 0000  _:" + obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Debug.Log("InitChapter_ 009  _:" + obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 obj.SetPosition(obj.x, starPosY - lineGap * i - 300, 0); ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                Debug.Log("zoya_ 1111  _:" + list.Count); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Debug.Log("InitChapter_ 010  _:" + list.Count); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 StoryLevelCfg levelCfg = i < list.Count ? list[i] : null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                Debug.Log("zoya_ 2222  _:"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Debug.Log("InitChapter_ 011  _:"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 UI_CompStoryLevelItem levelItem = UI_CompStoryLevelItem.Proxy(obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                Debug.Log("zoya_ 3333  _:" + levelItem); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Debug.Log("InitChapter_ 012  _:" + levelItem); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (levelCfg != null && MainStoryDataManager.CheckLevelUnlock(levelCfg.id)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    Debug.Log("zoya_ 4444  _:" + levelCfg.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    Debug.Log("InitChapter_ 013  _:" + levelCfg.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     UnlockCount++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    Debug.Log("zoya_ 5555  _:"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    Debug.Log("InitChapter_ 014  _:"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     levelItem.target.data = levelCfg.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     levelItem.target.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     levelItem.target.onClick.Clear(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     levelItem.target.onClick.Add(OnClickLevelItem); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    Debug.Log("zoya_ 6666  _:" + levelCfg.order); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    Debug.Log("InitChapter_ 015  _:" + levelCfg.order); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     string showId = StoryUtil.GetChapterOrder(_chapterID) + "-" + levelCfg.order; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    Debug.Log("zoya_ 7777  _:"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    Debug.Log("InitChapter_ 016  _:"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     levelItem.m_txtDialogOrder.text = showId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     levelItem.m_txtFightOrder.text = showId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (levelCfg.fightID.Length > 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        Debug.Log("zoya_ 8888  _:" + levelCfg.fightID); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        Debug.Log("InitChapter_ 017  _:" + levelCfg.fightID); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         levelItem.m_c1.selectedIndex = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         int score = InstanceZonesDataManager.GetScoreHighest(levelCfg.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         if (score <= 0) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -178,61 +178,61 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             levelItem.m_flower.target.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            Debug.Log("zoya_ 9999  _:"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            Debug.Log("InitChapter_ 018  _:"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             int starCount = InstanceZonesDataManager.GetStarCountHistory(levelCfg.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            Debug.Log("zoya_ 00000  _:"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            Debug.Log("InitChapter_ 019  _:"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             StoryUtil.UpdateStar(starCount, levelItem.m_flower.target); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            Debug.Log("zoya_ 11111  _:"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            Debug.Log("InitChapter_ 020  _:"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        Debug.Log("zoya_ 22222  _:"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        Debug.Log("InitChapter_ 021  _:"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         levelItem.m_c1.selectedIndex = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         levelItem.m_flower.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         levelItem.m_txtName.text = levelCfg.name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        Debug.Log("zoya_ 33333  _:"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        Debug.Log("InitChapter_ 022  _:"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         levelItem.m_comDialogBg.m_loabg.url = ResPathUtil.GetBgImgPath(chapterCfg.bgRes); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         levelItem.m_comDialogBg.m_loaIcon.url = ResPathUtil.GetChapterGuideIconPath(chapterCfg.bgRes); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         levelItem.m_comDialogBg.m_c1.selectedIndex = Random.Range(0, 10); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        Debug.Log("zoya_ 44444  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        Debug.Log("InitChapter_ 023  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    Debug.Log("zoya_ 55555  _:" + levelCfg.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    Debug.Log("zoya_ 55555  _:" + levelItem.m_holder); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    Debug.Log("InitChapter_ 024  _:" + levelCfg.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    Debug.Log("InitChapter_ 025  _:" + levelItem.m_holder); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     levelItem.m_holder.visible = !InstanceZonesDataManager.CheckLevelPass(levelCfg.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    Debug.Log("zoya_ 66666  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    Debug.Log("InitChapter_ 026  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (levelItem.m_holder.visible) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        Debug.Log("zoya_ 77777  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        Debug.Log("InitChapter_ 027  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         //设置为解锁关卡 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         MainStoryDataManager.currentLevelCfgId = levelCfg.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         _unPasslevelItem = levelItem.target; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        Debug.Log("zoya_ 88888  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        Debug.Log("InitChapter_ 028  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         string resPath = ResPathUtil.GetViewEffectPath("ui_gk", "ui_gk_sg"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         SceneController.AddObjectToView(_gameObject, _wrapper, levelItem.m_holder, resPath, out _gameObject, out _wrapper); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        Debug.Log("zoya_ 99999  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        Debug.Log("InitChapter_ 029  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (levelCfg.order > endLevel) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        Debug.Log("zoya_ 000000  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        Debug.Log("InitChapter_ 030  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         endLevel = levelCfg.order; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         _endLevelItem = levelItem.target; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        Debug.Log("zoya_ 111111  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        Debug.Log("InitChapter_ 031  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    Debug.Log("zoya_ 666  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    Debug.Log("InitChapter_ 032  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     levelItem.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    Debug.Log("zoya_ 666  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    Debug.Log("InitChapter_ 033  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                Debug.Log("zoya_ 666  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Debug.Log("InitChapter_ 034  _:" + UnlockCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 UI_CompStoryLevelItem.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Debug.Log("zoya333"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Debug.Log("InitChapter 035"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // yield return new WaitForEndOfFrame(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Debug.Log("zoya444"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Debug.Log("InitChapter 036"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_chapter.m_compChapterScroll.target.y = Mathf.Max(0, _ui.m_chapter.target.height - _ui.m_chapter.m_compChapterScroll.target.height); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 |