2025-05-23 16:24:00 +08:00
|
|
|
using System;
|
|
|
|
|
2025-04-26 21:05:13 +08:00
|
|
|
namespace HK
|
|
|
|
{
|
2025-07-02 10:24:01 +08:00
|
|
|
public class ManagerBase<T> where T : new()
|
2025-04-26 21:05:13 +08:00
|
|
|
{
|
|
|
|
private static T _instance;
|
|
|
|
|
|
|
|
public static T Instance
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
if (_instance == null)
|
|
|
|
{
|
|
|
|
_instance = new T();
|
|
|
|
}
|
|
|
|
|
|
|
|
return _instance;
|
|
|
|
}
|
|
|
|
}
|
2025-06-17 09:31:12 +08:00
|
|
|
|
2025-04-26 21:05:13 +08:00
|
|
|
}
|
|
|
|
}
|