Exemplo n.º 1
0
        private void SelectCharacter(TeamSelectData data, int index)
        {
            if (data == null)
            {
                throw new ArgumentNullException(nameof(data));
            }

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

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

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

            if (data.TeamMode == TeamMode.Single)
            {
                data.ButtonMap.Clear();
                m_stageSelect.SetStageSelectionInput(data.P1SelectData);
            }
            else if (data.State == TeamSelectState.SelectSelf)
            {
                data.State = TeamSelectState.SelectMate;
            }
            else
            {
                data.ButtonMap.Clear();
                m_stageSelect.SetStageSelectionInput(data.P2SelectData);
            }
        }
Exemplo n.º 2
0
        private void SelectTeamMode(TeamSelectData data)
        {
            if (data == null)
            {
                throw new ArgumentNullException(nameof(data));
            }

            if (data.State == TeamSelectState.TeamMode)
            {
                data.State = TeamSelectState.SelectSelf;
                data.PlaySelectSound();

                data.ButtonMap.Clear();
                SetCharacterSelectionInput(data);
            }
            else
            {
                data.State = TeamSelectState.SelectMate;
                data.PlaySelectSound();

                data.ButtonMap.Clear();
                SetCharacterSelectionInput(data);
            }
        }