1
This commit is contained in:
@@ -9,13 +9,16 @@ namespace BITKit.Pool
|
||||
/// </summary>
|
||||
public interface IPoolService
|
||||
{
|
||||
public int DefaultCapacity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 生成对象
|
||||
/// </summary>
|
||||
/// <param name="path">可寻址路径</param>
|
||||
/// <param name="prefab">直接提供的预制体</param>
|
||||
/// <typeparam name="T">类型</typeparam>
|
||||
/// <returns></returns>
|
||||
UniTask<T> Spawn<T>(string path) where T : class;
|
||||
UniTask<T> Spawn<T>(string path,object prefab=null) where T : class;
|
||||
/// <summary>
|
||||
/// 回收对象
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user