1 using System.Collections;
2 using System.Collections.Generic;
17 public abstract IEnumerator trial();
50 private bool _p =
false;
62 for(
int i=0; i<trial_amount; i++) {
64 yield
return StartCoroutine(this.trial());
76 StartCoroutine(experiment(trial_amount));
Monobehaviour but with an added URL button to a documentation page.
virtual void on_start_trial()
Function that gets called when a trial starts
Sets the documentation html file inside of Packages/com.avr.core/Documentation/html of a given class...
bool can_proceed()
This function returns true once after the can_proceed function has been called. Use this within the t...
virtual void on_end_trial()
Function that gets called when a trial ends
Base class to inherit from in order to create trial-based experiments. (One experiment consists of on...
void commence(int trial_amount=1)
Call this function to commence an experiment with a given amount of trials.
IEnumerator experiment(int trial_amount)
virtual void on_start()
Function that gets called when the experiment starts
void proceed()
Call this function externally to allow the trial to proceed.
virtual void on_end()
Function that gets called when the experiment ends