style : Code text indent format

pull/229/head
hevinci 2023-12-21 19:10:46 +08:00
parent 5c1d316d67
commit 544832c46a
117 changed files with 14101 additions and 14103 deletions

View File

@ -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}");
}

View File

@ -1,6 +1,5 @@
using System;
using System.Text;
using UnityEngine;
namespace YooAsset
{

View File

@ -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);

View File

@ -1,5 +1,4 @@

using UnityEngine;
using UnityEngine;
namespace YooAsset
{

View File

@ -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;
}

View File

@ -54,7 +54,7 @@ namespace YooAsset
_steps = ESteps.PrepareDone;
}
if(_steps == ESteps.PrepareDone)
if (_steps == ESteps.PrepareDone)
{
if (_provider.IsDone == false)
return;

View File

@ -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;

View File

@ -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 };