private void OnGUI() { _backgroundGrid.Draw(); OnGui?.Invoke(); ProcessedEvents?.Invoke(Event.current); ProcessEvents(Event.current); if (GUI.changed) { Repaint(); } }
// ReSharper disable once InconsistentNaming private void OnGUI() { _backgroundGrid.Draw(); // ReSharper disable once UseNullPropagation if (OnGui != null) { OnGui.Invoke(); } // ReSharper disable once UseNullPropagation if (ProcessedEvents != null) { ProcessedEvents.Invoke(Event.current); } ProcessEvents(Event.current); if (GUI.changed) { Repaint(); } }