fix build / remove DISABLE_DRAGONECS_DEBUGGER define

This commit is contained in:
Mikhail 2024-05-01 16:32:03 +08:00
parent a77e3adfc0
commit 22304f56c0
4 changed files with 11 additions and 12 deletions

View File

@ -60,12 +60,6 @@
true;
#else
false;
#endif
public const bool DISABLE_DRAGONECS_DEBUGGER =
#if DISABLE_DRAGONECS_DEBUGGER
true;
#else
false;
#endif
}
}

View File

@ -210,7 +210,7 @@ namespace DCFApixels.DragonECS
{
Console.ForegroundColor = ConsoleColor.White;
Console.BackgroundColor = ConsoleColor.Black;
#if !DISABLE_DRAGONECS_DEBUGGER
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_DEBUGGER
_stopwatchs = new MarkerData[64];
#endif
}
@ -252,7 +252,8 @@ namespace DCFApixels.DragonECS
private const string PROFILER_MARKER_CACHE = "[" + PROFILER_MARKER + "] ";
public override void ProfilerMarkBegin(int id)
{
#if !UNITY_EDITOR
#if ((DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_DEBUGGER) && !UNITY_5_3_OR_NEWER
var color = Console.ForegroundColor;
Console.ForegroundColor = ConsoleColor.DarkGray;
_stopwatchs[id].stopwatch.Start();
@ -266,7 +267,7 @@ namespace DCFApixels.DragonECS
}
public override void ProfilerMarkEnd(int id)
{
#if !UNITY_EDITOR
#if ((DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_DEBUGGER) && !UNITY_5_3_OR_NEWER
var color = Console.ForegroundColor;
Console.ForegroundColor = ConsoleColor.DarkGray;
_stopwatchs[id].stopwatch.Stop();

View File

@ -4,6 +4,9 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
#if ENABLE_IL2CPP
using Unity.IL2CPP.CompilerServices;
#endif
namespace DCFApixels.DragonECS
{
@ -11,7 +14,6 @@ namespace DCFApixels.DragonECS
public interface IEcsComponent : IEcsComponentType { }
#if ENABLE_IL2CPP
using Unity.IL2CPP.CompilerServices;
[Il2CppSetOption (Option.NullChecks, false)]
#endif
[MetaColor(MetaColor.DragonRose)]

View File

@ -4,6 +4,9 @@ using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.CompilerServices;
#if ENABLE_IL2CPP
using Unity.IL2CPP.CompilerServices;
#endif
namespace DCFApixels.DragonECS
{
@ -11,7 +14,6 @@ namespace DCFApixels.DragonECS
public interface IEcsTagComponent : IEcsComponentType { }
#if ENABLE_IL2CPP
using Unity.IL2CPP.CompilerServices;
[Il2CppSetOption (Option.NullChecks, false)]
#endif
[MetaColor(MetaColor.DragonRose)]
@ -50,7 +52,7 @@ namespace DCFApixels.DragonECS
}
}
#endif
#endregion
#endregion
#region Properites
public int Count