public void Start()
        {
            m_MaxQualityLevel = QualitySettings.names.Length - 1;

            if (m_FrameCalculator == null)
            {
                m_FrameCalculator = FindObjectOfType <FrameCalculator>();
            }

            m_FrameCalculator.fpsChanged += OnFpsChanged;
        }
Beispiel #2
0
        public void Start()
        {
            m_CachedQualityStateData = UIStateManager.current.applicationStateData.qualityStateData;

            if (m_FrameCalculator == null)
            {
                m_FrameCalculator = FindObjectOfType <FrameCalculator>();
            }

            m_FrameCalculator.fpsChanged += OnFpsChanged;

            UIStateManager.applicationStateChanged += OnApplicationStateChanged;
        }