void DoProcess() { if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject)) { // LogError ("owner is not initialized. Add Action \"newClassName\"."); return; } DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject wrapper = owner.Value as DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject; DlibFaceLandmarkDetector.DisposableDlibObject warapped = wrapper.wrappedObject as DlibFaceLandmarkDetector.DisposableDlibObject; warapped.Dispose(); wrapper.wrappedObject = null; Object.Destroy(owner.Value); owner.Value = null; }
public DisposableDlibObject(DlibFaceLandmarkDetector.DisposableDlibObject nativeObj) : base(nativeObj) { }