singleton

This commit is contained in:
pypy
2020-11-08 15:21:32 +09:00
parent 704b6a90c9
commit 0e5054d159
2 changed files with 12 additions and 5 deletions
+10 -3
View File
@@ -5,9 +5,16 @@ using System.IO;
namespace VRCX
{
public static class CefService
public class CefService
{
public static void Init()
public static CefService Instance { get; private set; }
static CefService()
{
Instance = new CefService();
}
internal void Init()
{
var cefSettings = new CefSettings
{
@@ -52,7 +59,7 @@ namespace VRCX
}
}
public static void Exit()
internal void Exit()
{
Cef.Shutdown();
}