示例#1
0
 /// <summary>
 /// Reserved
 /// </summary>
 public static void onGameUninit()
 {
     if (mainInstance != null)
     {
         EventAggregator.GetInstance().Shutdown();
         mainInstance = null;
     }
 }
示例#2
0
 /// <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?
     }
 }