diff --git a/src/Pools/EcsPoolBase.cs b/src/Pools/EcsPoolBase.cs index 759fc79..c8f54af 100644 --- a/src/Pools/EcsPoolBase.cs +++ b/src/Pools/EcsPoolBase.cs @@ -130,8 +130,10 @@ namespace DCFApixels.DragonECS.Internal #endregion #region Listeners +#if !DISABLE_POOLS_EVENTS void IEcsReadonlyPool.AddListener(IEcsPoolEventListener listener) { } void IEcsReadonlyPool.RemoveListener(IEcsPoolEventListener listener) { } +#endif #endregion } }