mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
24 lines
492 B
C#
24 lines
492 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace TEngine
|
|
{
|
|
public class MemPoolComponent:UnitySingleton<MemPoolComponent>
|
|
{
|
|
public MemPoolMgr PoolMgr;
|
|
|
|
protected override void OnLoad()
|
|
{
|
|
base.OnLoad();
|
|
PoolMgr = MemPoolMgr.Instance;
|
|
}
|
|
|
|
public int Count => PoolMgr.Count;
|
|
|
|
public List<IMemPoolBase> GetAllObjectPools()
|
|
{
|
|
return PoolMgr.GetAllObjectPools();
|
|
}
|
|
}
|
|
}
|