code cleanup

This commit is contained in:
DCFApixels 2025-02-28 12:50:35 +08:00
parent 21a2d48991
commit 396537731e
5 changed files with 10 additions and 13 deletions

View File

@ -1,13 +1,10 @@
//#undef DEBUG //#undef DEBUG
using UnityEngine;
using UnityEngine.Rendering;
using Unity.Collections.LowLevel.Unsafe;
using Unity.Jobs;
using DCFApixels.DebugXCore; using DCFApixels.DebugXCore;
using DCFApixels.DebugXCore.Internal; using DCFApixels.DebugXCore.Internal;
#if UNITY_EDITOR using Unity.Collections.LowLevel.Unsafe;
using UnityEditor; using Unity.Jobs;
#endif using UnityEngine;
using UnityEngine.Rendering;
namespace DCFApixels namespace DCFApixels
{ {

View File

@ -1,7 +1,7 @@
//#undef DEBUG //#undef DEBUG
using DCFApixels.DebugXCore;
using UnityEngine; using UnityEngine;
using UnityEngine.Rendering; using UnityEngine.Rendering;
using DCFApixels.DebugXCore;
namespace DCFApixels namespace DCFApixels
{ {

View File

@ -1,6 +1,6 @@
//#undef DEBUG //#undef DEBUG
using UnityEngine;
using DCFApixels.DebugXCore.Internal; using DCFApixels.DebugXCore.Internal;
using UnityEngine;
namespace DCFApixels namespace DCFApixels
{ {

View File

@ -1,9 +1,9 @@
using DCFApixels.DebugXCore; using DCFApixels.DebugXCore;
using UnityEngine;
using UnityEngine.Rendering;
#if UNITY_EDITOR #if UNITY_EDITOR
using UnityEditor; using UnityEditor;
#endif #endif
using UnityEngine;
using UnityEngine.Rendering;
namespace DCFApixels namespace DCFApixels
{ {
@ -235,7 +235,7 @@ namespace DCFApixels
#endregion #endregion
} }
#endregion #endregion
} }
} }
} }

View File

@ -41,7 +41,7 @@ namespace DCFApixels.DebugXCore
field.SetValue(obj, meshFilter.sharedMesh); field.SetValue(obj, meshFilter.sharedMesh);
} }
else else
{ {
Debug.LogWarning(field.Name + " not found."); Debug.LogWarning(field.Name + " not found.");
} }
} }