18 lines
		
	
	
		
			499 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			499 B
		
	
	
	
		
			C#
		
	
	
	
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using UnityEngine;
 | |
| 
 | |
| public class PlayerManager : GroupManager
 | |
| {
 | |
|     public override void AddSoldier(SoldierUnit pUnit, GroupManager pAgainstGroup)
 | |
|     {
 | |
|         pUnit.Group = GroupType.Player;
 | |
|         pUnit.AgainstGroup = pAgainstGroup;
 | |
| 
 | |
|         string tUnitID = Utils.GetUnitID(pUnit.BType, pUnit.Level, true);
 | |
|         DataUnit tData = TableUnit.Instance.GetData(tUnitID);
 | |
|         pUnit.Init(tData);
 | |
| 
 | |
|         AddSoldier(pUnit);
 | |
|     }
 | |
| } |