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

@@ -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()