mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-05 01:57:07 +00:00
14 lines
276 B
C#
14 lines
276 B
C#
namespace stonevox
|
|
{
|
|
public class Singleton<T> where T : class
|
|
{
|
|
private static T Instance;
|
|
public static T INSTANCE { get { return Singleton<T>.Instance; } }
|
|
|
|
public Singleton()
|
|
{
|
|
Instance = this as T;
|
|
}
|
|
}
|
|
}
|