Skip to content

Commit 334cb9c

Browse files
committed
修改资源比对的bug
1 parent 1e42e27 commit 334cb9c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Assets/GameFramework/Config/AssetBundleVersionInfo.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,19 @@ public class ResourcesInfo
3131
{
3232
public string Name;
3333
public string MD5;
34+
35+
public override bool Equals(object obj)
36+
{
37+
ResourcesInfo other = obj as ResourcesInfo;
38+
if (other.Name.Equals(Name) && other.MD5.Equals(MD5))
39+
return true;
40+
41+
return false;
42+
}
43+
44+
public override int GetHashCode()
45+
{
46+
return (Name + MD5).GetHashCode();
47+
}
48+
3449
}

0 commit comments

Comments
 (0)