mirror of https://github.com/tuyoogame/YooAsset
update download system
parent
45dbe2a0e6
commit
6877900ac2
|
@ -19,7 +19,7 @@ namespace YooAsset
|
|||
}
|
||||
|
||||
private ESteps _steps = ESteps.None;
|
||||
private bool _getAssetBundle;
|
||||
private bool _getAssetBundle = false;
|
||||
|
||||
public WebDownloader(BundleInfo bundleInfo, System.Type requesterType, int failedTryAgain, int timeout) : base(bundleInfo, requesterType, failedTryAgain, timeout)
|
||||
{
|
||||
|
@ -27,8 +27,11 @@ namespace YooAsset
|
|||
public override void SendRequest(params object[] args)
|
||||
{
|
||||
if (_steps == ESteps.None)
|
||||
{
|
||||
if (args.Length > 0)
|
||||
{
|
||||
_getAssetBundle = (bool)args[0];
|
||||
}
|
||||
_steps = ESteps.PrepareDownload;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue