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

22 lines
458 B
C#
Raw Normal View History

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