diff --git a/.vscode/settings.json b/.vscode/settings.json index 2882144..36e0cbf 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,7 +10,7 @@ "files.exclude": { "**/.[^v]*": true, // hide any files that start with a '.' but keep the .vscode folder ".vs": true, // Visual Studio settings - "getFNA.sh": true, + "getFNA.*": true, "imgui.ini": true, "MonoGameContent.targets": true, "**/obj": true, diff --git a/project_name/DemoComponent.cs b/project_name/DemoComponent.cs index 9f3e548..2c823a1 100755 --- a/project_name/DemoComponent.cs +++ b/project_name/DemoComponent.cs @@ -11,13 +11,13 @@ namespace project_name public override void OnAddedToEntity() { // register with the ImGuiMangaer letting it know we want to render some IMGUI - Core.GetGlobalManager().RegisterDrawCommand(ImGuiDraw); + Core.GetGlobalManager()?.RegisterDrawCommand(ImGuiDraw); } public override void OnRemovedFromEntity() { // remove ourselves when we are removed from the Scene - Core.GetGlobalManager().UnregisterDrawCommand(ImGuiDraw); + Core.GetGlobalManager()?.UnregisterDrawCommand(ImGuiDraw); } void ImGuiDraw()