Example #1
0
        private void OnNewParticipantMade(object sender, NewParticipantEventArgs e)
        {
            // Initialize Participant Timeline
            Timeline.Add(
                new SceneNode {
                SceneName = ProctorSetup
            });

            // Welcome Screen
            Timeline.Add(
                new SceneNode {
                SceneName = Welcome
            });

            // Initial Surveys
            Timeline.Add(
                new SurveyScene {
                SceneName  = GeneralSurvey,
                SurveyName = "DemographicSurvey",
                SurveyId   = 1
            });
            Timeline.Add(
                new SurveyScene {
                SceneName  = GeneralSurvey,
                SurveyName = "Ipip",
                SurveyId   = 2
            });
            Timeline.Add(
                new SurveyScene {
                SceneName  = GeneralSurvey,
                SurveyName = "InitialTrust",
                SurveyId   = 3
            });


            // Mission Loop
            for (int i = 1; i < _numMissions + 1; i++)
            {
                // Add transparency briefs to transparent participant and
                if (ParticipantBehavior.Participant.Data.Transparent && i != 1)
                {
                    Timeline.Add(
                        new SceneNode {
                        SceneName = TransparencyBrief
                    });
                }

                // Add Mission
                Timeline.Add(
                    new MissionScene {
                    SceneName = MissionScene,
                    MissionId = i
                });


                // Add Adaptive Trust or Non Adaptive Trust.
                if (!ParticipantBehavior.Participant.Data.Adaptive)
                {
                    Timeline.Add(
                        new SurveyScene {
                        SceneName  = GeneralSurvey,
                        SurveyName = "NonAdaptiveTrust",
                        SurveyId   = 4
                    });
                }
                else
                {
                    Timeline.Add(
                        new SurveyScene {
                        SceneName  = GeneralSurvey,
                        SurveyName = "AdaptiveTrust",
                        SurveyId   = 5
                    });
                }

                Timeline.Add(
                    new SurveyScene {
                    SceneName  = GeneralSurvey,
                    SurveyName = "Tlx",
                    SurveyId   = 6
                });
            }

            Timeline.Add(
                new SurveyScene {
                SceneName  = GeneralSurvey,
                SurveyName = "EndTlx",
                SurveyId   = 20
            });

            Timeline.Add(
                new SurveyScene {
                SceneName  = GeneralSurvey,
                SurveyName = "EndOfExperiment",
                SurveyId   = 21
            });

            Timeline.Add(
                new SceneNode {
                SceneName = FinalScene
            });

            CurrentScene = 0;
        }
 private void OnNewParticipantMade(object sender, NewParticipantEventArgs e)
 {
     _participantIdText      = GetComponent <Text>();
     _participantIdText.text = "Participant Id: " + e.Data.Id;
 }
 private void OnNewParticipantMade(object sender, NewParticipantEventArgs e)
 {
     GetComponent <Button>().interactable = false;
 }