多轮审查和修复

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

@@ -0,0 +1,23 @@
using UnityEngine;
namespace BaseGames.Core
{
/// <summary>
/// 全局对象池服务接口。
/// 通过 ServiceLocator 访问,解耦调用方与 GlobalObjectPool 具体实现。
/// </summary>
public interface IObjectPoolService
{
/// <summary>从池中取出指定 Component 类型的对象,并激活到指定位置/朝向。</summary>
T Spawn<T>(string key, Vector3 position, Quaternion rotation) where T : Component;
/// <summary>从池中取出 GameObject并激活到指定位置/朝向。</summary>
GameObject Spawn(string key, Vector3 position, Quaternion rotation);
/// <summary>将对象归还到池中(停用并入队)。</summary>
void Despawn(string key, Pool.PooledObject po);
/// <summary>清空指定 key 的对象池(场景卸载时调用)。</summary>
void ClearPool(string key);
}
}