Added initialization fault error detection

增加初始化容错检测。
This commit is contained in:
hevinci
2022-05-05 11:44:03 +08:00
parent cb48c672bd
commit c3c18cd555
4 changed files with 68 additions and 19 deletions
@@ -36,7 +36,7 @@ namespace YooAsset
/// <summary>
/// 编辑器资源路径
/// </summary>
public string EditorAssetPath { private set; get; }
internal string EditorAssetPath { private set; get; }
/// <summary>
/// 文件哈希值
@@ -104,7 +104,6 @@ namespace YooAsset
_steps = ESteps.Done;
Status = EOperationStatus.Failed;
Error = _appManifestLoader.Error;
throw new System.Exception($"FATAL : {_appManifestLoader.Error}");
}
else
{
@@ -178,7 +177,6 @@ namespace YooAsset
_steps = ESteps.Done;
Status = EOperationStatus.Failed;
Error = _appManifestLoader.Error;
throw new System.Exception($"FATAL : {_appManifestLoader.Error}");
}
else
{