Ejemplo n.º 1
0
        private void unsubscribeFromService()
        {
            if (_serviceCoroutine != null)
            {
                StopCoroutine(_serviceCoroutine);
                _serviceCoroutine = null;
            }

            var controller = _provider.GetLeapController();

            if (controller != null)
            {
                controller.ClearPolicy(Controller.PolicyFlag.POLICY_IMAGES);
                controller.Disconnect       -= onDisconnect;
                controller.ImageReady       -= onImageReady;
                controller.DistortionChange -= onDistortionChange;
                controller.FrameReady       -= onFrameReady;
            }
            _eyeTextureData.MarkStale();
        }
Ejemplo n.º 2
0
 void onDistortionChange(object sender, LeapEventArgs args)
 {
     _eyeTextureData.MarkStale();
 }