public override void OnLevelLoaded(LoadMode mode) { if (mode == LoadMode.LoadGame || mode == LoadMode.NewGame) { UIView view = UIView.GetAView(); UI = ToolsModifierControl.toolController.gameObject.AddComponent <MainPanel>(); renderingManager = RenderingManager.instance; renderingManager.enabled = true; if (renderingManager != null && !renderingManager.registered) { RenderManager.RegisterRenderableManager(renderingManager); renderingManager.registered = true; } renderingManager.initTimer(); /*ModSettings.LoadSettings(); * * * * * * MarkARouteOptions.mInGame = true; * MarkARouteOptions.update();*/ } }