public void Start() { m_MaxQualityLevel = QualitySettings.names.Length - 1; if (m_FrameCalculator == null) { m_FrameCalculator = FindObjectOfType <FrameCalculator>(); } m_FrameCalculator.fpsChanged += OnFpsChanged; }
public void Start() { m_CachedQualityStateData = UIStateManager.current.applicationStateData.qualityStateData; if (m_FrameCalculator == null) { m_FrameCalculator = FindObjectOfType <FrameCalculator>(); } m_FrameCalculator.fpsChanged += OnFpsChanged; UIStateManager.applicationStateChanged += OnApplicationStateChanged; }