void Start()
        {
            DontDestroyOnLoad(this);

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

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