Пример #1
0
        protected void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
                Font.textureRebuilt -= OnFontReset;
                painter?.Dispose();
                m_TextUpdatePainter?.Dispose();
                atlasManager?.Dispose();
                device?.Dispose();

                painter             = null;
                m_TextUpdatePainter = null;
                atlasManager        = null;
                device = null;
            }
            else
            {
                DisposeHelper.NotifyMissingDispose(this);
            }

            disposed = true;
        }
Пример #2
0
        protected void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
                m_Jobs.Dispose();
            }
            else
            {
                DisposeHelper.NotifyMissingDispose(this);
            }

            disposed = true;
        }
Пример #3
0
        protected void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
                m_NudgeJobs.Dispose();
                m_ConvertMeshJobs.Dispose();
                m_CopyClosingMeshJobs.Dispose();

                m_JobMerger.Dispose();
            }
            else
            {
                DisposeHelper.NotifyMissingDispose(this);
            }

            disposed = true;
        }
Пример #4
0
        protected void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
                for (int i = 0; i < m_Pages.Count; ++i)
                {
                    m_Pages[i].Dispose();
                }
                m_Pages.Clear();
                m_CurrentPageCount = 0;
            }
            else
            {
                DisposeHelper.NotifyMissingDispose(this);
            }

            disposed = true;
        }