public void OnDestroy() { if (SDPlugin.IsSDKReady && activeCoroutine != null) { StopCoroutine(activeCoroutine); activeCoroutine = null; SDPlugin.SixDegreesSDK_CancelLoad(); SDPlugin.SixDegreesSDK_CancelSave(); OnCancelledEvent(); } }
public void Cancel() { if (activeCoroutine != null) { if (saving) { SDPlugin.SixDegreesSDK_CancelSave(timeStamp); UpdateSaveStatus(); } if (loading) { SDPlugin.SixDegreesSDK_CancelLoad(timeStamp); UpdateLoadStatus(); } } }