Exemplo n.º 1
0
        IEnumerator Loop()
        {
            foreach (Trial trial in session.Trials)
            {
                trial.Begin();
                PresentStimulus(trial);
                yield return(new WaitForSeconds(1f));

                trial.End();
            }

            session.End();
        }
Exemplo n.º 2
0
    void EndAndPrepare()
    {
        Debug.Log("Ending trial");
        session.CurrentTrial.End();

        if (session.CurrentTrial == session.LastTrial)
        {
            session.End();
        }
        else
        {
            session.BeginNextTrial();
        }
    }
Exemplo n.º 3
0
 public void EndAndPrepare()
 {
     if (hackyEndTrialToggle)
     {
         hackyEndTrialToggle = !hackyEndTrialToggle;
         Debug.Log(string.Format("Ending trial {0}", session.CurrentTrial));
         session.CurrentTrial.End();
         if (session.CurrentTrial == session.LastTrial)
         {
             session.End();
         }
         else
         {
             SetupTrial();
             GetComponent <AudioSource>().PlayOneShot(TrialEndSound);
         }
     }
 }
 public void QueueQuit()
 {
     session.End();
 }