mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
fix
This commit is contained in:
parent
cb0c299e2e
commit
0f41895093
@ -299,12 +299,12 @@ namespace DCFApixels.DragonECS
|
|||||||
|
|
||||||
#region Build
|
#region Build
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
private static EcsProfilerMarker _buildBarker = new EcsProfilerMarker("EcsPipeline.Build");
|
private static EcsProfilerMarker _buildMarker = new EcsProfilerMarker("EcsPipeline.Build");
|
||||||
#endif
|
#endif
|
||||||
public EcsPipeline Build()
|
public EcsPipeline Build()
|
||||||
{
|
{
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
_buildBarker.Begin();
|
_buildMarker.Begin();
|
||||||
#endif
|
#endif
|
||||||
var it = new LinkedListIterator<SystemNode>(_systemNodes, _systemNodesCount, _startIndex);
|
var it = new LinkedListIterator<SystemNode>(_systemNodes, _systemNodesCount, _startIndex);
|
||||||
|
|
||||||
@ -370,7 +370,7 @@ namespace DCFApixels.DragonECS
|
|||||||
item.Declare(pipeline);
|
item.Declare(pipeline);
|
||||||
}
|
}
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
_buildBarker.End();
|
_buildMarker.End();
|
||||||
#endif
|
#endif
|
||||||
return pipeline;
|
return pipeline;
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ namespace DCFApixels.DragonECS.Internal
|
|||||||
//TODO потестить
|
//TODO потестить
|
||||||
public static void ResizeOrCreate<T>(ref T[] array, int newSize)
|
public static void ResizeOrCreate<T>(ref T[] array, int newSize)
|
||||||
{
|
{
|
||||||
if(array == null)
|
if (array == null)
|
||||||
{
|
{
|
||||||
array = new T[newSize];
|
array = new T[newSize];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user