| 
									
										
										
										
											2022-05-23 13:39:59 +00:00
										 |  |  |  | using System.Collections; | 
					
						
							|  |  |  |  | using System.Collections.Generic; | 
					
						
							|  |  |  |  | using UnityEngine; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | public class EnemyManager : GroupManager | 
					
						
							|  |  |  |  | { | 
					
						
							|  |  |  |  |     public override void AddSoldier(SoldierUnit pUnit, GroupManager pAgainstGroup) | 
					
						
							|  |  |  |  |     { | 
					
						
							|  |  |  |  |         pUnit.Group = GroupType.Enemy; | 
					
						
							|  |  |  |  |         pUnit.AgainstGroup = pAgainstGroup; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         WarUnitAttr tAttr = Utils.GetWarUnitAttrFromCard(pUnit.BType, pUnit.Level); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         if (PlayerData.Instance.CurrentLevel <= 3) | 
					
						
							|  |  |  |  |         { | 
					
						
							| 
									
										
										
										
											2022-06-08 13:56:34 +00:00
										 |  |  |  |             tAttr.MaxHP = (int)(0.75f * tAttr.MaxHP); | 
					
						
							|  |  |  |  |             tAttr.Damage = (int)(0.75f * tAttr.Damage); | 
					
						
							| 
									
										
										
										
											2022-05-23 13:39:59 +00:00
										 |  |  |  |         } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         pUnit.InitAttr(tAttr); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         AddSoldier(pUnit); | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  | } |