mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-26 18:50:10 +00:00
feat : webgl platform logs
This commit is contained in:
@@ -24,7 +24,13 @@ namespace YooAsset
|
|||||||
}
|
}
|
||||||
internal override void InternalOnStart()
|
internal override void InternalOnStart()
|
||||||
{
|
{
|
||||||
|
#if UNITY_WEBGL
|
||||||
|
_steps = ESteps.Done;
|
||||||
|
Status = EOperationStatus.Failed;
|
||||||
|
Error = $"{nameof(DefaultBuildinFileSystem)} is not support WEBGL platform !";
|
||||||
|
#else
|
||||||
_steps = ESteps.InitUnpackFileSystem;
|
_steps = ESteps.InitUnpackFileSystem;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
internal override void InternalOnUpdate()
|
internal override void InternalOnUpdate()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,7 +24,13 @@ namespace YooAsset
|
|||||||
}
|
}
|
||||||
internal override void InternalOnStart()
|
internal override void InternalOnStart()
|
||||||
{
|
{
|
||||||
|
#if UNITY_WEBGL
|
||||||
|
_steps = ESteps.Done;
|
||||||
|
Status = EOperationStatus.Failed;
|
||||||
|
Error = $"{nameof(DefaultCacheFileSystem)} is not support WEBGL platform !";
|
||||||
|
#else
|
||||||
_steps = ESteps.CheckAppFootPrint;
|
_steps = ESteps.CheckAppFootPrint;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
internal override void InternalOnUpdate()
|
internal override void InternalOnUpdate()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -181,6 +181,8 @@ namespace YooAsset
|
|||||||
{
|
{
|
||||||
_initializeStatus = op.Status;
|
_initializeStatus = op.Status;
|
||||||
_initializeError = op.Error;
|
_initializeError = op.Error;
|
||||||
|
if (_initializeStatus != EOperationStatus.Succeed)
|
||||||
|
YooLogger.Error(_initializeError);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user