style : Code text indent format

This commit is contained in:
hevinci
2023-12-21 19:10:46 +08:00
parent 5c1d316d67
commit 544832c46a
117 changed files with 14101 additions and 14103 deletions

View File

@@ -3,26 +3,26 @@ using UnityEngine;
namespace YooAsset
{
internal class YooAssetsDriver : MonoBehaviour
{
private static int LastestUpdateFrame = 0;
internal class YooAssetsDriver : MonoBehaviour
{
private static int LastestUpdateFrame = 0;
void Update()
{
DebugCheckDuplicateDriver();
YooAssets.Update();
}
void Update()
{
DebugCheckDuplicateDriver();
YooAssets.Update();
}
[Conditional("DEBUG")]
private void DebugCheckDuplicateDriver()
{
if (LastestUpdateFrame > 0)
{
if (LastestUpdateFrame == Time.frameCount)
YooLogger.Warning($"There are two {nameof(YooAssetsDriver)} in the scene. Please ensure there is always exactly one driver in the scene.");
}
[Conditional("DEBUG")]
private void DebugCheckDuplicateDriver()
{
if (LastestUpdateFrame > 0)
{
if (LastestUpdateFrame == Time.frameCount)
YooLogger.Warning($"There are two {nameof(YooAssetsDriver)} in the scene. Please ensure there is always exactly one driver in the scene.");
}
LastestUpdateFrame = Time.frameCount;
}
}
LastestUpdateFrame = Time.frameCount;
}
}
}