void OnDestroy()
 {
     webcamTexture?.Stop();
     poseDetect?.Dispose();
     poseLandmark?.Dispose();
     draw?.Dispose();
 }
Ejemplo n.º 2
0
    private void OnDestroy()
    {
        GetComponent <WebCamInput>().OnTextureUpdate.RemoveListener(OnTextureUpdate);

        poseDetect?.Dispose();
        poseLandmark?.Dispose();
        draw?.Dispose();
    }