Esempio n. 1
0
        public static Units GetNearestEnemyTowerOfSelf(Units self)
        {
            TeamType      teamType = (self.teamType != 0) ? TeamType.LM : TeamType.BL;
            IList <Units> mapUnits = MapManager.Instance.GetMapUnits(teamType, TargetTag.Building);

            return(TargetSelectHelper.GetNearestTowerOfCustom(self, mapUnits));
        }
Esempio n. 2
0
        public static Units GetNearestEnemyTowerOfTarget(Units target)
        {
            IList <Units> mapUnits = MapManager.Instance.GetMapUnits((TeamType)target.teamType, TargetTag.Tower);

            return(TargetSelectHelper.GetNearestTowerOfCustom(target, mapUnits));
        }