public override void OnEnterStep()
        {
            // Register the strategy used by the NeuroTags during the calibration.
            MonoTargetBehaviour behaviour = new MonoTargetBehaviour();

            behaviour.InitFromStep(this);
            calibrationManager.SetNeuroTagBehaviour(behaviour);

            numberOfTrials = calibrationManager.NumberOfTrials;

            // Reset the particle system.
            UpdateParticleSystem(0);

            calibrationManager.StartCalibration();

            calibrationManager.onCalibrationOver.AddListener(OnCalibrationOver);
        }
        public override void OnEnterStep()
        {
            // Register the strategy used by the NeuroTags during the calibration.
            MonoTargetBehaviour behaviour = new MonoTargetBehaviour();
            behaviour.InitFromStep(this);
            calibrationManager.SetNeuroTagBehaviour(behaviour);

            // Ensure displaying the preClibrationGroup at calibration start.
            preCalibrationGroup.StartFade(true, true);

            // Reset the particle system progress & speed.
            UpdateParticleSystem(0);
            var main = particles.main;
            main.simulationSpeed = originalSimulationSpeed;

            calibrationManager.StartCalibration();

            calibrationManager.onCalibrationOver.AddListener(OnCalibrationOver);
            calibrationManager.onCalibrationError.AddListener(OnCalibrationError);
        }
예제 #3
0
 void Start()
 {
     StartCoroutine(StartCalibrationWhenReady());
     CalibrationUIManager.Instance.ToggleState(CalibrationUIStates.Calibration);
     calibrationManager.SetNeuroTagBehaviour(new CalibrationTagBehavior());
 }
 private void Start()
 {
     ToggleState(CalibrationUIStates.PreCalibration);
     calibrationManager.SetNeuroTagBehaviour(new CalibrationTagBehavior());
 }