mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
make singleton
This commit is contained in:
@@ -10,11 +10,17 @@ namespace VRCX
|
||||
{
|
||||
public class Discord
|
||||
{
|
||||
public static Discord Instance { get; private set; }
|
||||
private static readonly ReaderWriterLockSlim m_Lock = new ReaderWriterLockSlim();
|
||||
private static readonly RichPresence m_Presence = new RichPresence();
|
||||
private static Thread m_Thread;
|
||||
private static bool m_Active;
|
||||
|
||||
static Discord()
|
||||
{
|
||||
Instance = new Discord();
|
||||
}
|
||||
|
||||
public static void Init()
|
||||
{
|
||||
m_Thread = new Thread(() =>
|
||||
|
||||
Reference in New Issue
Block a user