void Start()
        {
            DontDestroyOnLoad(this);

            if (useCalibrationSensorOrientation)
            {
                calibration = FindObjectOfType <CalibrationHandler>();

                if (calibration != null)
                {
                    calibration.onSuccess += Calibration_onSuccess;
                }
            }
        }
Example #2
0
 private void OnEnable()
 {
     calibrationHandler            = FindObjectOfType <CalibrationHandler>();
     calibrationHandler.onSuccess += Recenter;
 }