public TimeController(SimulationController controller) : base(controller) { // Self-register to the unity messaging Simulation simulation = Simulation.Instance; simulation.AddHook(this); }
public TimelineController(SimulationController controller) : base(controller) { timeline = new Timeline(); timeline.AddListener(this); // Self register and hook into the unity messages Simulation simulation = GameObject.FindObjectOfType <Simulation>(); simulation.AddHook(this); }
public DecisionController(SimulationController controller) : base(controller) { Simulation sim = Simulation.Instance; sim.AddHook(this); decisionWaitTime = 2.0f; mode = DecisionControllerMode.RepeatUtilCorrect; defaultColour = Color.white + new Color(0, 0, 0, 1); correctColour = Color.green - Color.grey + new Color(0, 0, 0, 1); incorrectColour = Color.red - Color.grey + new Color(0, 0, 0, 1); ResetState(); }