예제 #1
0
    public void OnDestroy()
    {
        if (SDPlugin.IsSDKReady && activeCoroutine != null)
        {
            StopCoroutine(activeCoroutine);
            activeCoroutine = null;

            SDPlugin.SixDegreesSDK_CancelLoad();
            SDPlugin.SixDegreesSDK_CancelSave();

            OnCancelledEvent();
        }
    }
예제 #2
0
 public void Cancel()
 {
     if (activeCoroutine != null)
     {
         if (saving)
         {
             SDPlugin.SixDegreesSDK_CancelSave(timeStamp);
             UpdateSaveStatus();
         }
         if (loading)
         {
             SDPlugin.SixDegreesSDK_CancelLoad(timeStamp);
             UpdateLoadStatus();
         }
     }
 }