Exemple #1
0
    protected override void OnEnter(TrialStates oldState)
    {
        switch (GetState())
        {
        case TrialStates.Idle:
            handSwitcher.showRightHand = true;
            testLights.SetActive(true);
            break;

        case TrialStates.SpecificTrial:
            switch (experimentType)
            {
            //case ExperimentType.ImplicitAgencyTest:
            //    agencyTrialController.StartMachine();
            //    WriteLog("Implicit Agency Trial State Machine Started");
            //    break;

            //case ExperimentType.ImplicitOwnershipTest:
            //    ownershipTrialController.StartMachine();
            //    WriteLog("Implicit Ownership Trial State Machine Started");
            //    break;

            case ExperimentType.VisuomotorInformation:
                visuomotorTrialController.StartMachine();
                WriteLog("Visuomotor Information Trial started");
                break;

            case ExperimentType.OutcomeOwnership:
                outcomeOwnershipTrialController.StartMachine();
                WriteLog("Outcome Ownership Trial started");
                break;
            }
            break;

        case TrialStates.Questionnaire:
            handSwitcher.showRightHand = false;
            questionnaireController.StartMachine();
            break;

        case TrialStates.End:
            this.StopMachine();
            break;
        }
    }