Example #1
0
        private void SelectCharacter(SelectData data, int index)
        {
            if (data == null)
            {
                throw new ArgumentNullException(nameof(data));
            }

            var selection = Grid.GetSelection(data.CurrentCell, false);

            if (selection == null || selection.SelectionType != PlayerSelectType.Profile)
            {
                return;
            }

            data.PlaySelectSound();
            data.ButtonMap.Clear();
            data.IsSelected    = true;
            data.PaletteIndex += index;

            m_stageSelect.SetStageSelectionInput(data);
        }
Example #2
0
        void SelectCharacter(SelectData data, Int32 index)
        {
            if (data == null)
            {
                throw new ArgumentNullException("data");
            }

            PlayerSelect selection = GetSelection(data.CurrentCell, false);

            if (selection == null || selection.SelectionType != PlayerSelectType.Profile)
            {
                return;
            }

            data.PlaySelectSound();
            data.ButtonMap.Clear();
            data.IsSelected    = true;
            data.PaletteIndex += index;

            SetStageSelectionInput(data);
        }