Esempio n. 1
0
 protected virtual void OnDisable()
 {
     if (!gameObject.activeSelf)
     {
         VRTK_SDKManager.UnsubscribeLoadedSetupChanged(LoadedSetupChanged);
     }
 }
Esempio n. 2
0
 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);
        }
Esempio n. 4
0
 protected virtual void OnDisable()
 {
     VRTK_SDKManager.UnsubscribeLoadedSetupChanged(LoadedSetupChanged);
     Destroy(headsetCameraTransformFollow);
     if (headsetCameraCopy != null)
     {
         Destroy(headsetCameraCopy.gameObject);
     }
 }