Пример #1
0
 // Public Unit Group Functions
 public void AttackGroup(UnitGroup target)
 {
     activeEngage      = true;
     targetGroup       = target;
     UnitGroupPosition = target.UnitGroupPosition;
     for (int i = 0; i < unitList.Count; i++)
     {
         unitList[i].MoveUnit(target.ClosestUnit(unitList[i].gameObject.transform.position));
     }
 }