diff --git a/src/Debug/Systems/WorldDebugSystem.cs b/src/Debug/Systems/WorldDebugSystem.cs index fe8e483..71672bb 100644 --- a/src/Debug/Systems/WorldDebugSystem.cs +++ b/src/Debug/Systems/WorldDebugSystem.cs @@ -123,7 +123,7 @@ namespace DCFApixels.DragonECS Color mainColor = new Color(0.3f, 1f, 0f, 1f); - var debugColor = pool.DataType.GetCustomAttribute(); + var debugColor = pool.ComponentType.GetCustomAttribute(); if (debugColor != null) { mainColor = debugColor.GetUnityColor(); @@ -132,14 +132,14 @@ namespace DCFApixels.DragonECS EditorGUI.DrawRect(progressBar, backgroundColor); - progressBar.yMin = progressBar.yMax - ((float)pool.EntitiesCount / pool.Capacity) * progressBar.height; + progressBar.yMin = progressBar.yMax - ((float)pool.Count / pool.Capacity) * progressBar.height; GUIStyle textStyle0 = EditorStyles.miniBoldLabel; textStyle0.alignment = TextAnchor.MiddleCenter; Color foregroundColor = mainColor; EditorGUI.DrawRect(progressBar, foregroundColor); - GUI.Label(progressBar, pool.EntitiesCount.ToString(), textStyle0); + GUI.Label(progressBar, pool.Count.ToString(), textStyle0); GUIStyle textStyle1 = EditorStyles.miniBoldLabel; textStyle1.alignment = TextAnchor.UpperCenter; @@ -148,7 +148,7 @@ namespace DCFApixels.DragonECS GUI.contentColor = defaultContentColor; GUIStyle textStyle2 = EditorStyles.miniBoldLabel; textStyle2.alignment = TextAnchor.LowerCenter; - GUI.Label(AddMargin(position, -10f, 3f), pool.DataType.Name, textStyle2); + GUI.Label(AddMargin(position, -10f, 3f), pool.ComponentType.Name, textStyle2); } diff --git a/src/Runners/Runners.cs b/src/Runners/Runners.cs index f51e7a1..69cec0e 100644 --- a/src/Runners/Runners.cs +++ b/src/Runners/Runners.cs @@ -7,12 +7,12 @@ public class EcsLateRunSystemRunner : EcsRunner, IEcsLateRunSystem { -#if DEBUG && !DISABLE_DRAGONECS_DEBUG +#if DEBUG && !DISABLE_DEBUG private EcsProfilerMarker[] _markers; #endif public void LateRun(EcsPipeline pipeline) { -#if DEBUG && !DISABLE_DRAGONECS_DEBUG +#if DEBUG && !DISABLE_DEBUG for (int i = 0; i < targets.Length; i++) { using (_markers[i].Auto()) @@ -23,7 +23,7 @@ #endif } -#if DEBUG && !DISABLE_DRAGONECS_DEBUG +#if DEBUG && !DISABLE_DEBUG protected override void OnSetup() { _markers = new EcsProfilerMarker[targets.Length]; @@ -52,12 +52,12 @@ } public class EcsFixedRunSystemRunner : EcsRunner, IEcsFixedRunSystem { -#if DEBUG && !DISABLE_DRAGONECS_DEBUG +#if DEBUG && !DISABLE_DEBUG private EcsProfilerMarker[] _markers; #endif public void FixedRun(EcsPipeline pipeline) { -#if DEBUG && !DISABLE_DRAGONECS_DEBUG +#if DEBUG && !DISABLE_DEBUG for (int i = 0; i < targets.Length; i++) { using (_markers[i].Auto()) @@ -68,7 +68,7 @@ #endif } -#if DEBUG && !DISABLE_DRAGONECS_DEBUG +#if DEBUG && !DISABLE_DEBUG protected override void OnSetup() { _markers = new EcsProfilerMarker[targets.Length];