Esempio n. 1
0
 void Update()
 {
     mediaPanel.Update();
     if (m_SchedulingPanel == null)
     {
         m_SchedulingPanel = new SchedulingPanel(m_DevLogEntries);
         m_SchedulingPanel.OnEnable();
     }
     m_SchedulingPanel.Update();
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
        private void Awake()
        {
            m_DevLogEntries = AssetDatabase.LoadAssetAtPath(Settings.DevLogScriptableObjectPath, typeof(DevLogEntries)) as DevLogEntries;
            m_DevLogPanel   = new DevLogPanel(m_DevLogEntries);

            //TODO this needs to be done in OnEnable to avoid edge case bugs on an upgrade
            m_ScreenCaptures = AssetDatabase.LoadAssetAtPath(Settings.ScreenCaptureScriptableObjectPath, typeof(DevLogScreenCaptureCollection)) as DevLogScreenCaptureCollection;

            mediaPanel = new MediaPanel(m_ScreenCaptures);

            m_EntryPanel      = new EntryPanel(m_DevLogEntries);
            m_TwitterPanel    = new TwitterPanel();
            m_DiscordPanel    = new DiscordPanel();
            m_SchedulingPanel = new SchedulingPanel(m_DevLogEntries);
            m_GitPanel        = new GitPanel(m_EntryPanel);
        }