Beispiel #1
0
 private void NextDifficultyLevel()
 {
     if (CurrentDifficulty == Difficulity.Advanced3)
     {
         //we are done with the experiment
         DataRecorder.RecordEvent(DataEvent.ExperimentEnded);
         ExperimentManager.Instance.ExperimentComplete();
         return;
     }
     if (CurrentDifficulty == Difficulity.Tutorial)
     {
         StartCoroutine(StressLevelPromptCoroutine());
         DataRecorder.RecordEvent(DataEvent.ExperimentStart);
     }
     CurrentDifficulty = CurrentDifficulty + 1;
     DataRecorder.RecordEvent(DataEvent.DifficultyLevelChanged, (int)CurrentDifficulty);
     //tell anybody who cares that the difficulty level changed
     DifficultySensitiveBehaviour.SetLevelForAll(CurrentDifficulty);
     Invoke("PromptForNextDifficultyLevel", AutoLevelTime);
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     DataRecorder.ResetTime();
     NextLevelPanel.OnConfirm += NextDifficultyLevel;
 }
 public void AbortExperiment()
 {
     DataRecorder.RecordEvent(DataEvent.ExperimentAborted);
     SetExperimentStage(SimulationState.PostExperiment);
 }