NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/GameWrapper/CmpPoolManager.cs

22 lines
472 B
C#
Raw Normal View History

2023-10-19 15:00:19 +08:00
using UnityEngine;
namespace Gameplay.Pool.Debug
{
public class CmpPoolManager: MonoBehaviour
{
private static CmpPoolManager _instance;
public static void CreateInstance()
{
if (_instance != null)
{
return;
}
var obj = new GameObject("PoolManager");
DontDestroyOnLoad(obj);
_instance = obj.AddComponent<CmpPoolManager>();
}
}
}