public SimpleExperiment(ExperimentRunner runner, RunnableDesign design) : base(runner, design) { }
// // You usually want to store a reference to your experiment runner // YourCustomExperimentRunner myRunner; // Required Constructor. Good place to set up references to objects in the unity scene public TutorialSampleExperimentScript(ExperimentRunner runner, RunnableDesign runnableDesign) : base(runner, runnableDesign) { // myRunner = (YourCustomExperimentRunner)runner; //cast the generic runner to your custom type. // GameObject myGameObject = myRunner.MyGameObject; // get reference to gameObject stored in your custom runner }
// // You usually want to store a reference to your experiment runner // YourCustomExperimentRunner myRunner; // Required Constructor. Good place to set up references to objects in the unity scene public ___ExperimentClassName___(ExperimentRunner runner, RunnableDesign runnableDesign) : base(runner, runnableDesign) { // myRunner = (YourCustomExperimentRunner)runner; //cast the generic runner to your custom type. // GameObject myGameObject = myRunner.MyGameObject; // get reference to gameObject stored in your custom runner }