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(); } }
internal override void OnEnable() { if (this.GetType() == typeof(UIProfilerModule)) { instance = new WeakReference(this); } base.OnEnable(); if (m_UISystemProfiler == null) { m_UISystemProfiler = new UISystemProfiler(); } }