/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { if (sourceToMatHelper != null) { sourceToMatHelper.Dispose(); } if (faceLandmarkDetector != null) { faceLandmarkDetector.Dispose(); } #if UNITY_WEBGL if (getFilePath_Coroutine != null) { StopCoroutine(getFilePath_Coroutine); ((IDisposable)getFilePath_Coroutine).Dispose(); } #endif }