mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-27 03:00:17 +00:00
update package system
This commit is contained in:
@@ -154,10 +154,13 @@ namespace YooAsset
|
|||||||
if (Manifest.EnableAddressable)
|
if (Manifest.EnableAddressable)
|
||||||
{
|
{
|
||||||
string location = packageAsset.Address;
|
string location = packageAsset.Address;
|
||||||
if (Manifest.AssetPathMapping1.ContainsKey(location))
|
if (string.IsNullOrEmpty(location) == false)
|
||||||
throw new System.Exception($"Location have existed : {location}");
|
{
|
||||||
else
|
if (Manifest.AssetPathMapping1.ContainsKey(location))
|
||||||
Manifest.AssetPathMapping1.Add(location, packageAsset.AssetPath);
|
throw new System.Exception($"Location have existed : {location}");
|
||||||
|
else
|
||||||
|
Manifest.AssetPathMapping1.Add(location, packageAsset.AssetPath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 填充AssetPathMapping2
|
// 填充AssetPathMapping2
|
||||||
|
|||||||
Reference in New Issue
Block a user