/// <summary> /// Reserved /// </summary> public static void onGameUninit() { if (mainInstance != null) { EventAggregator.GetInstance().Shutdown(); mainInstance = null; } }
/// <summary> /// Called inside the static constructor of GameManager. /// </summary> public static void onGameInit() { if (mainInstance == null) { Permissions.PermissionManager.Instance = new Permissions.SimplePermissionManager(); mainInstance = new SKMain(); // TODO start loading plugins on a different thread? } }