Update EcsPool.cs

This commit is contained in:
Mikhail 2024-11-03 13:40:06 +08:00
parent 3db4fafafe
commit 7652936e5b

View File

@ -44,7 +44,7 @@ namespace DCFApixels.DragonECS
private bool _isHasComponentCopyHandler = EcsComponentCopyHandler<T>.isHasHandler;
#if !DISABLE_POOLS_EVENTS
private List<IEcsPoolEventListener> _listeners = new List<IEcsPoolEventListener>();
private readonly List<IEcsPoolEventListener> _listeners = new List<IEcsPoolEventListener>();
private int _listenersCachedCount = 0;
#endif