| 
					
				 | 
			
			
				@@ -26,7 +26,7 @@ namespace Fort23.Mono 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             InitBattleHeroWidget(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             LevelUpdate(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            CheckEquipAlterPoint(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            CheckEquipRedPoint(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void AddEvent() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -44,11 +44,14 @@ namespace Fort23.Mono 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             EventManager.Instance.AddEventListener(CustomEventType.PlayerUseSkill, PlayerUseSkill); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             EventManager.Instance.AddEventListener(CustomEventType.OnCloseHeroPanel, OnHeroPanelClose); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				              
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            EventManager.Instance.AddEventListener(CustomEventType.Combat_EquipFall, CheckEquipAlterPoint); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            EventManager.Instance.AddEventListener(CustomEventType.HeroEquip, CheckEquipAlterPoint); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            EventManager.Instance.AddEventListener(CustomEventType.Combat_EquipFall, CheckEquipRedPoint); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            EventManager.Instance.AddEventListener(CustomEventType.HeroEquip, CheckEquipRedPoint); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            EventManager.Instance.AddEventListener(CustomEventType.AlterCombatHero, OnCombatHeroChange); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void DelEvent() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -63,20 +66,38 @@ namespace Fort23.Mono 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             EventManager.Instance.RemoveEventListener(CustomEventType.AlterCombatHero, AlterCombatHero); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             EventManager.Instance.RemoveEventListener(CustomEventType.OnCloseHeroPanel, OnHeroPanelClose); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				              
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            EventManager.Instance.RemoveEventListener(CustomEventType.Combat_EquipFall, CheckEquipAlterPoint); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            EventManager.Instance.RemoveEventListener(CustomEventType.HeroEquip, CheckEquipAlterPoint); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            EventManager.Instance.RemoveEventListener(CustomEventType.Combat_EquipFall, CheckEquipRedPoint); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            EventManager.Instance.RemoveEventListener(CustomEventType.HeroEquip, CheckEquipRedPoint); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            EventManager.Instance.RemoveEventListener(CustomEventType.AlterCombatHero, OnCombatHeroChange); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// <summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// 战斗英雄改变 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// </summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// <param name="e"></param> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void OnCombatHeroChange(IEventData e) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (PlayerManager.Instance.heroController.heroDicInLead.Count >= 4) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                box.gameObject.SetActive(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                box.gameObject.SetActive(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /// <summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /// 检查装备小红点 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /// </summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /// <param name="e"></param> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        private void CheckEquipAlterPoint(IEventData e) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void CheckEquipRedPoint(IEventData e) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // Combat_EquipFallEventData data = e as Combat_EquipFallEventData; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             bool betterEqs = PlayerManager.Instance.eqController.IsBetterEqs(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (betterEqs) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (betterEqs && PlayerManager.Instance.heroController.allHeroDic.Count > 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 alterObj1.SetActive(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -377,14 +398,7 @@ namespace Fort23.Mono 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 i++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (PlayerManager.Instance.heroController.heroDicInLead.Count >= 4) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                box.gameObject.SetActive(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                box.gameObject.SetActive(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             OnHeroPanelClose(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -394,8 +408,7 @@ namespace Fort23.Mono 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             txtCoin.text = BagController.Instance.GetItemInfo(GlobalParam.Item_Coin_ID).count.Value.ToStringEx(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             txtHeroExp.text = BagController.Instance.GetItemInfo(GlobalParam.Item_HeroExp_ID).count.Value.ToStringEx(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            OnCombatHeroChange(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |