mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
22 lines
388 B
C#
22 lines
388 B
C#
|
|
namespace YooAsset
|
|
{
|
|
internal sealed class CompletedProvider : ProviderBase
|
|
{
|
|
public CompletedProvider(AssetInfo assetInfo) : base(null, string.Empty, assetInfo)
|
|
{
|
|
}
|
|
public override void Update()
|
|
{
|
|
}
|
|
public void SetCompleted(string error)
|
|
{
|
|
if (Status == EStatus.None)
|
|
{
|
|
Status = EStatus.Failed;
|
|
LastError = error;
|
|
InvokeCompletion();
|
|
}
|
|
}
|
|
}
|
|
} |