Update PatchSystem

增加AssetsPackage.GetHumanReadableVersion()方法
This commit is contained in:
hevinci
2022-10-17 16:04:47 +08:00
parent 6116e49a05
commit c14db5fd0d
5 changed files with 59 additions and 0 deletions

View File

@@ -277,6 +277,30 @@ namespace YooAsset
}
}
/// <summary>
/// 获取人类可读的版本信息
/// </summary>
public string GetHumanReadableVersion()
{
DebugCheckInitialize();
if (_playMode == EPlayMode.EditorSimulateMode)
{
return _editorSimulateModeImpl.GetHumanReadableVersion();
}
else if (_playMode == EPlayMode.OfflinePlayMode)
{
return _offlinePlayModeImpl.GetHumanReadableVersion();
}
else if (_playMode == EPlayMode.HostPlayMode)
{
return _hostPlayModeImpl.GetHumanReadableVersion();
}
else
{
throw new NotImplementedException();
}
}
/// <summary>
/// 资源回收(卸载引用计数为零的资源)
/// </summary>