Пример #1
0
    public int ChangeAttack()
    {
        int randomAttack = UnityEngine.Random.Range(0, 5);

        switch ((SpoonStates)randomAttack)
        {
        case SpoonStates.SCOOP:
            ChangeState(new SpoonScoop());
            break;

        case SpoonStates.SLOW:
            ChangeState(new SpoonSlow());
            break;

        case SpoonStates.SPLASH:
            ChangeState(new SpoonSplash());
            break;
        }
        bowl.DecreaseFluidLevel(fluidDecrease);
        return(randomAttack);
    }