Пример #1
0
        /// <summary>
        /// Create the smallest platoon allowed.
        /// </summary>
        private void StartNewPlatoon()
        {
            _smallestPlatoonSize = MIN_PLATOON_SIZE;
            _newestPlatoon       = PlatoonBehaviour.CreateGhostMode(Unit, Owner);
            for (int i = 0; i < MIN_PLATOON_SIZE; i++)
            {
                _newestPlatoon.AddSingleUnit();
            }

            PreviewPlatoons.Add(_newestPlatoon);
        }
Пример #2
0
 public void AddUnit()
 {
     if (_smallestPlatoonSize < MAX_PLATOON_SIZE)
     {
         _smallestPlatoonSize++;
         _newestPlatoon.AddSingleUnit();
     }
     else
     {
         StartNewPlatoon();
     }
 }