// Set the scale back to default.
        public void Reset()
        {
            CurrentAQEvent = AQEvent.None;

            if (!enabled)
            {
                return;
            }
            index = defaultIndex;
            WaveVR_Render.Instance.SetResolutionScale(resolutionScaleList[index]);
            Log.d(LOG_TAG, "Event Reset: [" + index + "]=" + resolutionScaleList[index]);
        }
        void OnEnable()
        {
            if (resolutionScaleList.Count < 2)
            {
                Log.e(LOG_TAG, "Not to enable because the list is empty.");
                return;
            }

            WaveVR_Utils.Event.Listen(WVR_EventType.WVR_EventType_RecommendedQuality_Higher.ToString(), HigherHandler);
            WaveVR_Utils.Event.Listen(WVR_EventType.WVR_EventType_RecommendedQuality_Lower.ToString(), LowerHandler);
            index          = defaultIndex;
            CurrentAQEvent = AQEvent.None;
            WaveVR_Render.Instance.onFirstFrame = InitDynamicResolution;
        }
        void LowerHandler(params object[] args)
        {
            if (!isInitialized)
            {
                return;
            }

            if (++index >= resolutionScaleList.Count)
            {
                index = resolutionScaleList.Count - 1;
            }

            WaveVR_Render.Instance.SetResolutionScale(resolutionScaleList[index]);
            CurrentAQEvent = AQEvent.Lower;
            Log.d(LOG_TAG, "Event Lower: [" + index + "]=" + resolutionScaleList[index]);
        }
        void HigherHandler(params object[] args)
        {
            if (!isInitialized)
            {
                return;
            }

            if (--index < 0)
            {
                index = 0;
            }

            WaveVR_Render.Instance.SetResolutionScale(resolutionScaleList[index]);
            CurrentAQEvent = AQEvent.Higher;
            Log.d(LOG_TAG, "Event Higher: [" + index + "]=" + resolutionScaleList[index]);
        }
 // Let the function can be access by script.
 public void Lower()
 {
     LowerHandler(); CurrentAQEvent = AQEvent.ManualLower;
 }
 // Let the function can be access by script.
 public void Higher()
 {
     HigherHandler(); CurrentAQEvent = AQEvent.ManualHigher;
 }