mergemilitary/Assets/Scripts/Game/Wars/GroupManager/PlayerManager.cs

17 lines
451 B
C#
Raw Normal View History

2022-05-23 13:39:59 +00:00
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;
WarUnitAttr tAttr = Utils.GetWarUnitAttrFromCard(pUnit.BType, pUnit.Level);
pUnit.InitAttr(tAttr);
AddSoldier(pUnit);
}
}