Example #1
0
    public void ChangeDificulty()
    {
        if (dropMenu.value == 0)
        {
            difState = DifucultyState.Boooo;
        }
        else if (dropMenu.value == 1)
        {
            difState = DifucultyState.Oke;
        }
        else
        {
            difState = DifucultyState.Yass;
        }

        switch (difState)
        {
        case DifucultyState.Boooo:
            GameManager.instance.maxLives = 5;
            break;

        case DifucultyState.Oke:
            GameManager.instance.maxLives = 3;
            break;

        case DifucultyState.Yass:
            GameManager.instance.maxLives = 1;
            break;

        default:
            break;
        }
    }
Example #2
0
 void Start()
 {
     difState = DifucultyState.Boooo;
 }