release build fix

This commit is contained in:
Mike 2019-09-20 23:12:31 -07:00
parent e97423d34f
commit 8712e57f07
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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<ImGuiManager>().RegisterDrawCommand(ImGuiDraw);
Core.GetGlobalManager<ImGuiManager>()?.RegisterDrawCommand(ImGuiDraw);
}
public override void OnRemovedFromEntity()
{
// remove ourselves when we are removed from the Scene
Core.GetGlobalManager<ImGuiManager>().UnregisterDrawCommand(ImGuiDraw);
Core.GetGlobalManager<ImGuiManager>()?.UnregisterDrawCommand(ImGuiDraw);
}
void ImGuiDraw()