Beispiel #1
0
 void Stop()
 {
     if (null != _contextObject)
     {
         Debug.Log("Shutting down OSVR.");
         _contextObject.Dispose();
         _contextObject = null;
     }
 }
 //Shutdown RenderManager and Dispose of the ClientContext we created for it
 public void ExitRenderManager()
 {
     ShutdownRenderManager();
     if (null != _renderManagerClientContext)
     {
         _renderManagerClientContext.Dispose();
         _renderManagerClientContext = null;
     }
 }
Beispiel #3
0
 void Stop()
 {
     // Only stop the main instance, since it is the only one that
     // ever actually starts-up.
     if (this == instance)
     {
         if (null != _contextObject)
         {
             Debug.Log("[OSVR-Unity] Shutting down OSVR.");
             _contextObject.Dispose();
             _contextObject = null;
         }
     }
 }
Beispiel #4
0
            void Stop()
            {
                // Only stop the main instance, since it is the only one that
                // ever actually starts-up.
                if (this == instance)
                {
                    if (null != _contextObject)
                    {
                        Debug.Log("[OSVR-Unity] Shutting down OSVR.");
                        _contextObject.Dispose();
                        _contextObject = null;
#if UNITY_STANDALONE_WIN || UNITY_ANDROID
                        if (_serverAutoStarter != null)
                        {
                            _serverAutoStarter.Dispose();
                            _serverAutoStarter = null;
                        }
#endif
                    }
                }
            }