public void LoadEngine() { // ModelMap map = new ModelMap(); //Initialise Game Engine LoadingScreen.SetLoadingDetailText("Loading Engine"); // engine = new Engine(); // engine.OnExit += OnExit; //Load Model into the engine //if (!isMapEditor) //{ // engine.Initialise(); //} //else //{ // // engine.InitialiseMapEditor(map); //} Thread.Sleep(loadDisplayTime); LoadingScreen.SetLoadingDetailText("Loading Renderer"); //Initialise Graphics Renderer gameplayScreen = new GameplayScreen(); // renderer = map.LoadRenderer(); gameplayScreen.Pause += OnPause; gameplayScreen.Play += OnPlay; gameplayScreen.Initialise(); Thread.Sleep(loadDisplayTime); LoadingScreen.SetLoadingDetailText("Loading Shaders"); ShaderManager.GetInstance().LoadShaders(); //Load graphics into the renderer //Put the thread to sleep so that anything still being initialised is ready when it exits and fires OnLoad event Thread.Sleep(loadDisplayTime); LoadingComplete(this, new EventArgs()); // OnLoad(this, new EventArgs()); }