mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
@@ -659,6 +659,7 @@ namespace TEngine
|
|||||||
|
|
||||||
if (cancelOrFailed)
|
if (cancelOrFailed)
|
||||||
{
|
{
|
||||||
|
_assetLoadingList.Remove(assetObjectKey);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -696,6 +697,7 @@ namespace TEngine
|
|||||||
|
|
||||||
if (cancelOrFailed)
|
if (cancelOrFailed)
|
||||||
{
|
{
|
||||||
|
_assetLoadingList.Remove(assetObjectKey);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -752,6 +754,8 @@ namespace TEngine
|
|||||||
|
|
||||||
if (!string.IsNullOrEmpty(assetInfo.Error))
|
if (!string.IsNullOrEmpty(assetInfo.Error))
|
||||||
{
|
{
|
||||||
|
_assetLoadingList.Remove(assetObjectKey);
|
||||||
|
|
||||||
string errorMessage = Utility.Text.Format("Can not load asset '{0}' because :'{1}'.", location, assetInfo.Error);
|
string errorMessage = Utility.Text.Format("Can not load asset '{0}' because :'{1}'.", location, assetInfo.Error);
|
||||||
if (loadAssetCallbacks.LoadAssetFailureCallback != null)
|
if (loadAssetCallbacks.LoadAssetFailureCallback != null)
|
||||||
{
|
{
|
||||||
@@ -840,6 +844,8 @@ namespace TEngine
|
|||||||
|
|
||||||
if (!string.IsNullOrEmpty(assetInfo.Error))
|
if (!string.IsNullOrEmpty(assetInfo.Error))
|
||||||
{
|
{
|
||||||
|
_assetLoadingList.Remove(assetObjectKey);
|
||||||
|
|
||||||
string errorMessage = Utility.Text.Format("Can not load asset '{0}' because :'{1}'.", location, assetInfo.Error);
|
string errorMessage = Utility.Text.Format("Can not load asset '{0}' because :'{1}'.", location, assetInfo.Error);
|
||||||
if (loadAssetCallbacks.LoadAssetFailureCallback != null)
|
if (loadAssetCallbacks.LoadAssetFailureCallback != null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user