Example #1
0
    private void SetupMap(ButtonCell cell = null)
    {
        switch (state)
        {
        case GameState.SetupState:
            break;

        case GameState.ProcessState:
            mapManager.DisableAllButtons();
            currentPlayer.EnableRingCells();
            if (cell != null && cell.isRingState)
            {
                mapManager.ActivatePossibleButtons(cell);
            }
            break;

        case GameState.PickStoneState:
            mapManager.DisableAllButtons();
            break;

        case GameState.PickRingState:
            mapManager.DisableAllButtons();
            currentPlayer.EnableRingCells();
            break;
        }
    }