private void InitCombox(int id, UICombox control)
        {
            var config       = VideoSettingConfigManager.GetInstance().GetItemById(id);
            var defaultList  = config.LevelDatas;
            var defaultValue = config.DefaultValue;
            int defaultIndex = defaultList.FindIndex((val) => Math.Abs(val - defaultValue) < 0.0000001);

            control.SetSelectByIndex(defaultIndex);
        }
        private void InitOption()
        {
            var typeDict = VideoSettingConfigManager.GetInstance().GetTypeDict();
            var enumList = Enum.GetValues(typeof(EVideoSettingType));

            foreach (EVideoSettingType key in enumList)
            {
                var typeListForThisKey = typeDict[key];
                InitOption(key, typeListForThisKey);
            }
        }
        private void InitSlider(int id, Slider control, bool isDefault = true)
        {
            if (!_sendValList.ContainsKey(id) && !isDefault)
            {
                return;
            }

            var   config   = VideoSettingConfigManager.GetInstance().GetItemById(id);
            float curValue = isDefault
                ? config.DefaultValue
                : _sendValList[id];

            control.value = (curValue - config.MinValue) / (config.MaxValue - config.MinValue);
        }
        private void InitDefaultDict(ref Dictionary <int, float> defaultVideoSettingList)
        {
            defaultVideoSettingList     =
                defaultVideoSettingList = VideoSettingConfigManager.GetInstance().GetDefaultValueDict();
            var origDict = VideoSettingManager.GetInstance().LoadLocalVideoSetting();

            if (origDict == null || origDict.Count == 0)
            {
                return;
            }
            foreach (var it in origDict)
            {
                defaultVideoSettingList[it.Key] = origDict[it.Key];
            }
        }
        private void InitToggle(int id, Toggle control, bool isDefault = true)
        {
            if (!_sendValList.ContainsKey(id) && !isDefault)
            {
                return;
            }

            var   config   = VideoSettingConfigManager.GetInstance().GetItemById(id);
            float curValue = isDefault
                ? config.DefaultValue
                : _sendValList[id];
            bool defaultIndex = curValue == 1;

            control.isOn = defaultIndex;
        }
        private void InitCombox(int id, UICombox control, bool isDefault = true)
        {
            if (!_sendValList.ContainsKey(id) && !isDefault)
            {
                return;
            }

            var   config   = VideoSettingConfigManager.GetInstance().GetItemById(id);
            float curValue = isDefault
                ? config.DefaultValue
                : _sendValList[id];
            var defaultList  = config.LevelDatas;
            int defaultIndex = defaultList.FindIndex((val) => Math.Abs(val - curValue) < 0.0000001);

            control.SetSelectByIndex(defaultIndex);
        }
        private void InitToggle(int id, Toggle control)
        {
            bool defaultIndex = VideoSettingConfigManager.GetInstance().GetItemById(id).DefaultValue == 1;

            control.isOn = defaultIndex;
        }
        private void InitSlider(int id, Slider control)
        {
            var config = VideoSettingConfigManager.GetInstance().GetItemById(id);

            control.value = ((float)config.DefaultValue - config.MinValue) / (config.MaxValue - config.MinValue);;
        }