private void OnEnable()
        {
            configManager.AddValueChangeListener(configKeyName, UpdateValue);
            configManager.AddValueChangeListener(GlobalConfigKeyName, UpdateValue);
            if (useSecondaryConfigKeyName)
            {
                configManager.AddValueChangeListener(secondaryConfigKeyName, UpdateValue);
            }

            UpdateValue();
        }
Exemple #2
0
        private void OnEnable()
        {
            foreach (var toggle in toggles)
            {
                toggle.onValueChanged.AddListener(OnValueChange);
            }

            configManager.AddValueChangeListener(configKeyName, UpdateValue);
            UpdateValue();
        }
Exemple #3
0
 private void OnEnable()
 {
     configManager.AddValueChangeListener(configKeyName, UpdateValue);
     UpdateValue();
 }
 private void OnEnable()
 {
     slider.onValueChanged.AddListener(OnValueChange);
     configManager.AddValueChangeListener(configKeyName, UpdateValue);
     UpdateValue();
 }