mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
fix build / remove DISABLE_DRAGONECS_DEBUGGER define
This commit is contained in:
parent
a77e3adfc0
commit
22304f56c0
@ -60,12 +60,6 @@
|
||||
true;
|
||||
#else
|
||||
false;
|
||||
#endif
|
||||
public const bool DISABLE_DRAGONECS_DEBUGGER =
|
||||
#if DISABLE_DRAGONECS_DEBUGGER
|
||||
true;
|
||||
#else
|
||||
false;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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)]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user