Files
TEngine/Assets/TEngine/Runtime/Core/MemPoolComponent.cs
ALEXTANG 40058f1d19 MemPool
MemPool
2022-08-10 12:55:46 +08:00

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();
}
}
}