public void OnCloseTroubleshootingPanel() { helpCurrentTimer = 0f; troubleshootingVideoPlayer.Stop(); troubleshootingVideoPlayer.targetTexture.Release(); troubleshootingCanvasFader.StartFade(false); }
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); }