public static void Shutdown() { if (instance != null) { instance.OnShutdown(); instance.shutdown(); instance = null; } }
public static bool Init(JxEngineApp overridedObject, IntPtr mainModuleData) { if (overridedObject == null) { Log.Fatal("EngineApp: Init: overridedObject == null."); return(false); } if (instance != null) { Log.Fatal("EngineApp: Init: instance != null."); return(false); } instance = overridedObject; bool flag = instance.DoInit(mainModuleData); if (!flag) { Shutdown(); } return(flag); }
public static bool Init(JxEngineApp overridedObject) { return(Init(overridedObject, IntPtr.Zero)); }