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