Esempio n. 1
0
 public void Release()
 {
     if (!PreviewTexture)
     {
         return;
     }
     OnStart     =
         OnFrame = null;
     PreviewTexture.Stop();
     WebCamTexture.Destroy(PreviewTexture);
     PreviewTexture = null;
     previewBuffer  = null;
     dispatch.Dispose();
     dispatch = null;
     camera   = -1;
 }
Esempio n. 2
0
 public void Release()
 {
     OnStart     =
         OnFrame = null;
     natcam.Call("release");
     if (preview != null)
     {
         Texture2D.Destroy(preview);
     }
     preview = null;
     if (dispatch != null)
     {
         dispatch.Dispose();
     }
     dispatch = null;
 }