Exemplo n.º 1
0
 /// <summary>
 /// 向网络端请求并更新补丁清单
 /// </summary>
 /// <param name="resourceVersion">更新的资源版本</param>
 /// <param name="timeout">超时时间(默认值:60秒)</param>
 public static UpdateManifestOperation UpdateManifestAsync(int resourceVersion, int timeout = 60)
 {
     DebugCheckInitialize();
     if (_playMode == EPlayMode.EditorSimulateMode)
     {
         var operation = new EditorPlayModeUpdateManifestOperation();
         OperationSystem.StartOperaiton(operation);
         return(operation);
     }
     else if (_playMode == EPlayMode.OfflinePlayMode)
     {
         var operation = new OfflinePlayModeUpdateManifestOperation();
         OperationSystem.StartOperaiton(operation);
         return(operation);
     }
     else if (_playMode == EPlayMode.HostPlayMode)
     {
         return(_hostPlayModeImpl.UpdatePatchManifestAsync(resourceVersion, timeout));
     }
     else
     {
         throw new NotImplementedException();
     }
 }