void Update() { mediaPanel.Update(); if (m_SchedulingPanel == null) { m_SchedulingPanel = new SchedulingPanel(m_DevLogEntries); m_SchedulingPanel.OnEnable(); } m_SchedulingPanel.Update(); }
private void OnEnable() { EditorApplication.update += Update; if (m_SchedulingPanel == null) { // For some reason the scheduling panel is occasionally set to null, this resets it // TODO remove this workaround by fixing the actual bug!!! m_SchedulingPanel = new SchedulingPanel(m_DevLogEntries); } m_SchedulingPanel.OnEnable(); }