24 lines
473 B
C#
24 lines
473 B
C#
using AlicizaX.ObjectPool;
|
|
using AlicizaX;
|
|
|
|
public static partial class GameApp
|
|
{
|
|
/// <summary>
|
|
/// 获取对象池组件。
|
|
/// </summary>
|
|
public static IObjectPoolModule ObjectPool
|
|
{
|
|
get
|
|
{
|
|
if (_objectPool == null)
|
|
{
|
|
_objectPool = ModuleSystem.GetModule<IObjectPoolModule>();
|
|
}
|
|
|
|
return _objectPool;
|
|
}
|
|
}
|
|
|
|
internal static IObjectPoolModule _objectPool;
|
|
}
|