예제 #1
0
        /// <summary>
        ///     When a platoon's label is left clicked we need to
        ///     add it to the selection. These clicks are detected
        ///     by a button callback handler, so the notification
        ///     unfortunately has to come from the outside..
        /// </summary>
        public void PlatoonLabelClicked(PlatoonBehaviour selectedPlatoon)
        {
            if (selectedPlatoon.Owner != _localPlayer)
            {
                return;
            }

            UnselectAll(_selection, false);
            selectedPlatoon.PlaySelectionVoiceline();
            _selection.Add(selectedPlatoon);
            SetSelected(_selection, false);
            _justSelected = true;
        }