多轮审查和修复

This commit is contained in:
2026-05-12 15:34:08 +08:00
parent f55d2a57c3
commit ebbbb7332e
805 changed files with 838724 additions and 1905 deletions

View File

@@ -14,6 +14,13 @@ namespace BaseGames.Core.Pool
public string AddressKey { get; private set; }
private GlobalObjectPool _pool;
/// <summary>
/// 对象在 GlobalObjectPool._alive 链表中的节点引用。
/// 存储节点可将 Despawn 时的链表移除从 O(n) 降为 O(1)。
/// 仅 GlobalObjectPool 内部读写,业务代码不应访问。
/// </summary>
internal LinkedListNode<PooledObject> AliveNode;
// 组件缓存(避免反复 GetComponent
private readonly Dictionary<Type, Component> _componentCache = new();