mirror of https://github.com/tuyoogame/YooAsset
style : Code text indent format
parent
5c1d316d67
commit
544832c46a
|
@ -32,7 +32,7 @@ namespace YooAsset
|
|||
{
|
||||
Directory.Delete(FileRootPath, true);
|
||||
}
|
||||
catch(System.Exception e)
|
||||
catch (System.Exception e)
|
||||
{
|
||||
YooLogger.Warning($"Failed delete cache bundle folder : {e}");
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Text;
|
||||
using UnityEngine;
|
||||
|
||||
namespace YooAsset
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace YooAsset
|
|||
/// </summary>
|
||||
public static void EditorRequestDebugReport()
|
||||
{
|
||||
if(UnityEditor.EditorApplication.isPlaying)
|
||||
if (UnityEditor.EditorApplication.isPlaying)
|
||||
{
|
||||
var report = YooAssets.GetDebugReport();
|
||||
EditorHandleDebugReportCallback?.Invoke(0, report);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
|
||||
namespace YooAsset
|
||||
{
|
||||
|
|
|
@ -172,7 +172,7 @@ namespace YooAsset
|
|||
if (offset > _timeout)
|
||||
{
|
||||
YooLogger.Warning($"Web file request timeout : {_requestURL}");
|
||||
if(_requester != null)
|
||||
if (_requester != null)
|
||||
_requester.Abort();
|
||||
_isAbort = true;
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ namespace YooAsset
|
|||
_steps = ESteps.PrepareDone;
|
||||
}
|
||||
|
||||
if(_steps == ESteps.PrepareDone)
|
||||
if (_steps == ESteps.PrepareDone)
|
||||
{
|
||||
if (_provider.IsDone == false)
|
||||
return;
|
||||
|
|
|
@ -347,7 +347,7 @@ namespace YooAsset
|
|||
if (_cachingOperation == null)
|
||||
{
|
||||
_cachingOperation = new PackageCachingOperation(_impl.Persistent, _impl.Cache);
|
||||
OperationSystem.StartOperation(_impl.PackageName,_cachingOperation);
|
||||
OperationSystem.StartOperation(_impl.PackageName, _cachingOperation);
|
||||
}
|
||||
|
||||
Progress = _cachingOperation.Progress;
|
||||
|
|
|
@ -104,7 +104,7 @@ namespace YooAsset
|
|||
/// </summary>
|
||||
protected override byte[] HashFinal()
|
||||
{
|
||||
if(BitConverter.IsLittleEndian)
|
||||
if (BitConverter.IsLittleEndian)
|
||||
return new[] { (byte)_currentCrc, (byte)(_currentCrc >> 8), (byte)(_currentCrc >> 16), (byte)(_currentCrc >> 24) };
|
||||
else
|
||||
return new[] { (byte)(_currentCrc >> 24), (byte)(_currentCrc >> 16), (byte)(_currentCrc >> 8), (byte)_currentCrc };
|
||||
|
|
Loading…
Reference in New Issue