diff --git a/src/Debug/EcsDebug.cs b/src/Debug/EcsDebug.cs index c75a26f..6dd1ac9 100644 --- a/src/Debug/EcsDebug.cs +++ b/src/Debug/EcsDebug.cs @@ -55,7 +55,15 @@ namespace DCFApixels.DragonECS public abstract class DebugService { private static DebugService _instance; - public static DebugService Instance => _instance ??= new DefaultDebugService(); + public static DebugService Instance + { + get + { + if (_instance == null) + _instance = new DefaultDebugService(); + return _instance; + } + } public static void Set() where T : DebugService, new() => Set(new T()); public static void Set(DebugService service) diff --git a/src/Pools/EcsPoolBase.cs b/src/Pools/EcsPoolBase.cs index 853226f..ebe41b4 100644 --- a/src/Pools/EcsPoolBase.cs +++ b/src/Pools/EcsPoolBase.cs @@ -9,11 +9,11 @@ namespace DCFApixels.DragonECS public interface IEcsPool { #region Properties - public int ComponentID { get; } - public Type ComponentType { get; } - public EcsWorld World { get; } - public int Count { get; } - public int Capacity { get; } + int ComponentID { get; } + Type ComponentType { get; } + EcsWorld World { get; } + int Count { get; } + int Capacity { get; } #endregion #region Methods @@ -127,7 +127,7 @@ namespace DCFApixels.DragonECS #region Reset/Copy interfaces public interface IEcsComponentReset { - public void Reset(ref T component); + void Reset(ref T component); } public static class EcsComponentResetHandler { @@ -163,7 +163,7 @@ namespace DCFApixels.DragonECS public interface IEcsComponentCopy { - public void Copy(ref T from, ref T to); + void Copy(ref T from, ref T to); } public static class EcsComponentCopyHandler {