| 
					
				 | 
			
			
				@@ -8,8 +8,8 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public class FieldFightInfoView : BaseWindow 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private UI_FieldFightInfoUI _ui; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        private StoryLevelCfg _storyLevelCfg; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        private StoryFightCfg _storyFightCfg; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // private StoryLevelCfg _storyLevelCfg; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // private StoryFightCfg _storyFightCfg; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private int _time = 3; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public override void Dispose() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -33,16 +33,23 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             base.OnShown(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _time = 3; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UpdateView(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void UpdateView() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _ui.m_txtName.text = _storyFightCfg.targetName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _ui.m_txtDesc.text = _storyLevelCfg.desc; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            FieldCfg fieldCfg = FieldCfgArray.Instance.GetCfg(FieldDataManager.Instance.chapterId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            string num = StringUtil.GetColorText(string.Format("{0}/{1}", 0, fieldCfg.num), "#BB674E"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            FieldDataManager dataManager = FieldDataManager.Instance; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            FieldCfg fieldCfg = FieldCfgArray.Instance.GetCfg(dataManager.chapterId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            StoryLevelCfg storyLevelCfg = StoryLevelCfgArray.Instance.GetCfgs(fieldCfg.type, 0, fieldCfg.id)[dataManager.currFightLv]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            StoryFightCfg storyFightCfg = StoryFightCfgArray.Instance.GetCfg(storyLevelCfg.fightID); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            dataManager.currFightLv++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            InstanceZonesDataManager.currentLevelCfgId = storyLevelCfg.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_txtName.text = storyFightCfg.targetName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_txtDesc.text = storyLevelCfg.desc; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            string num = StringUtil.GetColorText(string.Format("{0}/{1}", dataManager.currFightLv, fieldCfg.num), "#BB674E"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_txtNum.text = string.Format("第{0}轮", num); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _ui.m_loaNpc.url = ResPathUtil.GetNpcHeadPath(_storyFightCfg.targetRes); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_loaNpc.url = ResPathUtil.GetNpcHeadPath(storyFightCfg.targetRes); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_txtTime.text = string.Format("{0}秒后自动进入下一轮", _time); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Timers.inst.Add(1, _time, OnTimerUpdate, 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -55,6 +62,13 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 Timers.inst.Remove(OnTimerUpdate); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 this.Hide(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                InstanceZonesDataManager.currentCardId = FieldFightDataManager.Instance.CurrentCardId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                InstanceZonesDataManager.currentScoreType = FieldFightDataManager.Instance.CurrentScoreType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                InstanceZonesDataManager.currentLevelCfgId = FieldFightDataManager.Instance.CurrentScoreType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                EquipDataCache.cacher.equipDatas = FieldFightDataManager.Instance.equipDatas; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ViewManager.Show(ViewName.STORY_FIGHT_TARGET_VIEW); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_txtTime.text = string.Format("{0}秒后自动进入下一轮", _time); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -66,9 +80,15 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 Timers.inst.Add(1, _time, OnTimerUpdate, 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            .SetRightButton(true, "中止", (object data) => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            .SetRightButton(true, "中止", async (object data) => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 this.Hide(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                bool result = await FieldSProxy.ReqFieldInstanceResult(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (result) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    ViewManager.Hide<FieldView>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    ViewManager.Show<FieldFightEndView>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void OnHide() 
			 |