File tree Expand file tree Collapse file tree 1 file changed +22
-9
lines changed
GameFramework/Runtime/Resource Expand file tree Collapse file tree 1 file changed +22
-9
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,18 @@ public class ResourceVersion
26
26
//更新中
27
27
private bool _updating = false ;
28
28
29
+ /// <summary>
30
+ /// 远程的版本信息
31
+ /// </summary>
32
+ /// <value></value>
33
+ public AssetBundleVersionInfo RemoteVersion { get ; private set ; }
34
+
35
+ /// <summary>
36
+ /// 本地的版本信息
37
+ /// </summary>
38
+ /// <value></value>
39
+ public AssetBundleVersionInfo LocalVersion { get ; private set ; }
40
+
29
41
30
42
public ResourceVersion ( string remoteUpdatePath , string localResourcePath )
31
43
{
@@ -43,16 +55,17 @@ public void OnUpdate()
43
55
}
44
56
45
57
/// <summary>
46
- /// 远程的版本信息
47
- /// </summary>
48
- /// <value></value>
49
- public AssetBundleVersionInfo RemoteVersion { get ; private set ; }
50
-
51
- /// <summary>
52
- /// 本地的版本信息
58
+ /// 设置远程访问的连接,需要设置新的远程资源路径的链接
53
59
/// </summary>
54
- /// <value></value>
55
- public AssetBundleVersionInfo LocalVersion { get ; private set ; }
60
+ /// <param name="remoteUpdatePath"></param>
61
+ public void SetRemoteUpdatePath ( string remoteUpdatePath )
62
+ {
63
+ if ( string . IsNullOrEmpty ( remoteUpdatePath ) )
64
+ {
65
+ throw new GameException ( $ "The remote version information link cannot be empty!") ;
66
+ }
67
+ _remoteUpdatePath = remoteUpdatePath ;
68
+ }
56
69
57
70
/// <summary>
58
71
/// 请求本地版本信息
You can’t perform that action at this time.
0 commit comments