private static extern void FCE_Editor_EnableUI_Callback(EnableUICallbackDelegate eventCallback);
public static void Init() { m_delegateUpdateCallback = new UpdateCallbackDelegate(Editor.UpdateCallback); FCE_Editor_Update_Callback(m_delegateUpdateCallback); m_delegateEventCallback = new EventCallbackDelegate(Editor.EventCallback); FCE_Editor_Event_Callback(m_delegateEventCallback); m_delegateLoadCompletedCallback = new LoadCompletedCallbackDelegate(Editor.LoadCompletedCallback); FCE_Editor_LoadCompleted_Callback(m_delegateLoadCompletedCallback); m_delegateSaveCompletedCallback = new SaveCompletedCallbackDelegate(Editor.SaveCompletedCallback); FCE_Editor_SaveCompleted_Callback(m_delegateSaveCompletedCallback); m_delegateEnableUICallback = new EnableUICallbackDelegate(Editor.EnableUICallback); FCE_Editor_EnableUI_Callback(m_delegateEnableUICallback); while (!FCE_Editor_IsInitialized()) { Engine.TickDuniaEngine(); } }