public void createTask()
    {
        currentSetting            = settingsController.getCurrentSettingValues();
        _rangeOfNumbers           = currentSetting._rangeOfNumbers;
        _numberTypeFront          = currentSetting._numberTypeFront;
        _numberTypeBack           = currentSetting._numberTypeBack;
        _failSaveCounter          = 0;
        _allreadyFellBackToRandom = false;
        //Debug.LogWarning("ntFront: " + _numberTypeFront + "; Back: " + _numberTypeBack);

        if (_numberTypeFront == FMC_Settings.numberType.even || _numberTypeFront == FMC_Settings.numberType.uneven)
        {
            _numberTypeFront = FMC_Settings.numberType.mixed;
        }
        if (_numberTypeBack == FMC_Settings.numberType.even || _numberTypeFront == FMC_Settings.numberType.uneven)
        {
            _numberTypeBack = FMC_Settings.numberType.mixed;
        }

        x = -1;
        y = -1;

        findMethod();

        if (x == -1 && y == -1)
        {
            fallbackRandom();
        }

        FMC_Task t = new FMC_Task();

        setTaskValues(t);

        if (lastTask == null || lastTask.task != t.task || iterations >= 20)
        {
            if (newTaskCreated != null)
            {
                newTaskCreated(t);
            }

            lastTask   = t;
            iterations = 0;

            //t.setUserAnswer(t.correctAnswer, false);
            //FMC_GameDataController.instance.answerTask(t);
        }
        else
        {
            iterations++;
            createTask();
        }
    }
 public void setSettings(FMC_Settings newSettings)
 {
     settingsController.getCurrentSettingValues().setSettings(newSettings);
 }