Пример #1
0
    public void Update()
    {
        if (!IsStarted())
        {
            return;
        }

        switch (GetState())
        {
        case TrialStates.Idle:
            if (GetTimeInState() > 2.0f)
            {
                ChangeState(TrialStates.SpecificTrial);
            }
            break;

        case TrialStates.SpecificTrial:
            break;

        case TrialStates.Questionnaire:
            if (GetTimeInState() > 1.5f)
            {
                questionnaireController.DimLights();
            }
            break;

        case TrialStates.End:
            break;
        }
    }