Пример #1
0
        public override void OnEnable(IProfilerWindowController profilerWindow)
        {
            if (this.GetType() == typeof(UIProfilerModule))
            {
                instance = new WeakReference(this);
            }

            base.OnEnable(profilerWindow);

            if (m_UISystemProfiler == null)
            {
                m_UISystemProfiler = new UISystemProfiler();
            }
        }
Пример #2
0
        internal override void OnEnable()
        {
            if (this.GetType() == typeof(UIProfilerModule))
            {
                instance = new WeakReference(this);
            }

            base.OnEnable();

            if (m_UISystemProfiler == null)
            {
                m_UISystemProfiler = new UISystemProfiler();
            }
        }