public static void EnvironmentStatsOnGUI() { if (Event.current.type == EventType.Repaint && EnvironmentStatsDrawer.ShouldShowWindowNow()) { EnvironmentStatsDrawer.DrawInfoWindow(); } }
public static void EnvironmentStatsOnGUI() { if (Event.current.type != EventType.Repaint || !EnvironmentStatsDrawer.ShouldShowWindowNow()) { return; } EnvironmentStatsDrawer.DrawInfoWindow(); }