Exemplo n.º 1
0
 /// <summary>
 /// 向网络端请求静态资源版本
 /// </summary>
 /// <param name="timeout">超时时间(默认值:60秒)</param>
 public static UpdateStaticVersionOperation UpdateStaticVersionAsync(int timeout = 60)
 {
     DebugCheckInitialize();
     if (_playMode == EPlayMode.EditorSimulateMode)
     {
         var operation = new EditorPlayModeUpdateStaticVersionOperation();
         OperationSystem.StartOperaiton(operation);
         return(operation);
     }
     else if (_playMode == EPlayMode.OfflinePlayMode)
     {
         var operation = new OfflinePlayModeUpdateStaticVersionOperation();
         OperationSystem.StartOperaiton(operation);
         return(operation);
     }
     else if (_playMode == EPlayMode.HostPlayMode)
     {
         return(_hostPlayModeImpl.UpdateStaticVersionAsync(timeout));
     }
     else
     {
         throw new NotImplementedException();
     }
 }