private void OnDestroy() { #if UNITY_ANDROID && AR_ON PlayerPrefsHelper.SaveBool("control_box_display_trackables", (bool)Trackables.GetValue()); PlayerPrefsHelper.SaveBool("control_box_autoCalib", (bool)AutoCalibration.GetValue()); #endif PlayerPrefsHelper.SaveBool("control_box_display_connections", (bool)ConnectionsSwitch.GetValue()); }