static void toggleImGui() { // install the service if it isnt already there var service = Core.getGlobalManager <ImGuiManager>(); if (service == null) { service = new ImGuiManager(); Core.registerGlobalManager(service); } service.setEnabled(!service.enabled); }
static void ToggleImGui() { // install the service if it isnt already there var service = Core.GetGlobalManager <ImGuiManager>(); if (service == null) { service = new ImGuiManager(); Core.RegisterGlobalManager(service); } else { service.SetEnabled(!service.Enabled); } }