싱글톤 클래스 추가
This commit is contained in:
@@ -20,7 +20,7 @@ namespace WarhoundConsole
|
||||
|
||||
private static void MainInternal(string[] args)
|
||||
{
|
||||
|
||||
Singleton.I.Initialize();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
18
WarhoundConsole/Singleton.cs
Normal file
18
WarhoundConsole/Singleton.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace WarhoundConsole
|
||||
{
|
||||
public sealed class Singleton
|
||||
{
|
||||
public static Singleton I => i ??= new();
|
||||
private static Singleton? i = null;
|
||||
|
||||
private Singleton()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user