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