com.alicizax.unity.entry/Runtime/GameApp.ObjectPool.cs

24 lines
480 B
C#
Raw Normal View History

2025-03-20 20:47:26 +08:00
using AlicizaX.ObjectPool;
using AlicizaX.Runtime;
2025-02-07 16:09:00 +08:00
public static partial class GameApp
{
/// <summary>
/// 获取对象池组件。
/// </summary>
2025-03-20 20:47:26 +08:00
public static IObjectPoolModule ObjectPool
2025-02-07 16:09:00 +08:00
{
get
{
if (_objectPool == null)
{
2025-03-20 20:47:26 +08:00
_objectPool = ModuleSystem.GetModule<IObjectPoolModule>();
2025-02-07 16:09:00 +08:00
}
return _objectPool;
}
}
2025-03-20 20:47:26 +08:00
private static IObjectPoolModule _objectPool;
}