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; }
void OnDisable() { if (serviceRunning) { m_ARInterface.StopService(); Application.onBeforeRender -= OnBeforeRender; } }
void OnDisable() { StopAllCoroutines(); if (IsRunning) { m_ARInterface.StopService(); Application.onBeforeRender -= OnBeforeRender; } }