protected virtual void OnDisable() { if (!gameObject.activeSelf) { VRTK_SDKManager.UnsubscribeLoadedSetupChanged(LoadedSetupChanged); } }
protected virtual void OnDisable() { if (VRTK_SDKManager.UnsubscribeLoadedSetupChanged(LoadedSetupChanged)) { UnregisterPreviousLeftController(); UnregisterPreviousRightController(); } }
protected virtual void OnDisable() { VRTK_SDKManager.UnsubscribeLoadedSetupChanged(OnLoadedSetupChanged); switchButton.onClick.RemoveListener(OnSwitchButtonClick); cancelButton.onClick.RemoveListener(OnCancelButtonClick); Show(ViewingState.Status); }
protected virtual void OnDisable() { VRTK_SDKManager.UnsubscribeLoadedSetupChanged(LoadedSetupChanged); Destroy(headsetCameraTransformFollow); if (headsetCameraCopy != null) { Destroy(headsetCameraCopy.gameObject); } }