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