コード例 #1
0
    private void SetDifficulty()
    {
        switch (difficulty)
        {
        case Difficulty.BEGINNER:
            numOfMines = 10;
            width      = 10;
            height     = 10;

            break;

        case Difficulty.INTERMEDIATE:
            numOfMines = 40;
            width      = 15;
            height     = 15;
            break;

        case Difficulty.EXPERT:
            numOfMines = 99;
            width      = 20;
            height     = 20;
            break;
        }
        CameraView.AdjustCameraPosition(width, height);
    }