Exemplo n.º 1
0
 void StopService()
 {
     m_ARInterface.StopService();
     ARInterface.planeAdded   -= PlaneAddedHandler;
     ARInterface.planeUpdated -= PlaneUpdatedHandler;
     ARInterface.planeRemoved -= PlaneRemovedHandler;
     m_ServiceRunning          = false;
     m_ARInterface             = null;
     m_HaveSentCameraParams    = false;
 }
 void StopService()
 {
     StopAllCoroutines();
     m_ARInterface.StopService();
     ARInterface.planeAdded   -= PlaneAddedHandler;
     ARInterface.planeUpdated -= PlaneUpdatedHandler;
     ARInterface.planeRemoved -= PlaneRemovedHandler;
     m_ARInterface             = null;
     m_HaveSentCameraParams    = false;
 }
Exemplo n.º 3
0
 void OnDisable()
 {
     if (serviceRunning)
     {
         m_ARInterface.StopService();
         Application.onBeforeRender -= OnBeforeRender;
     }
 }
Exemplo n.º 4
0
 void OnDisable()
 {
     StopAllCoroutines();
     if (IsRunning)
     {
         m_ARInterface.StopService();
         Application.onBeforeRender -= OnBeforeRender;
     }
 }