Exemplo n.º 1
0
        private void SetSelected(
            List <PlatoonBehaviour> selectedPlatoons, bool justPreviewing)
        {
            selectedPlatoons.ForEach(x => x.SetSelected(true, justPreviewing));

            if (selectedPlatoons.Count != 0 && !justPreviewing)
            {
                // Randomly choose one platoon to play a selected voiceline
                int randInt = Random.Range(0, selectedPlatoons.Count);
                selectedPlatoons[randInt].PlaySelectionVoiceline();

                _selectionPane.OnSelectionChanged(selectedPlatoons);
            }
        }