Пример #1
0
 void AttributionToggle()
 {
     if (_textShowSliderValue.ToString() == "Text")
     {
         if (textValueSlider != null)
         {
             if (_toggleWhichChanges.isOn)
             {
                 textValueSlider.text = textValueToggleOn;
             }
             else
             {
                 textValueSlider.text = textValueToggleOff;
             }
         }
     }
     else if (_textShowSliderValue.ToString() == "TMPro")
     {
         if (tmproValueSlider != null)
         {
             if (_toggleWhichChanges.isOn)
             {
                 tmproValueSlider.text = textValueToggleOn;
             }
             else
             {
                 tmproValueSlider.text = textValueToggleOff;
             }
         }
     }
 }