Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Color enabledColor
- {
- get { return m_EnabledColor; }
- set
- {
- m_EnabledColor = value;
- if (m_HandleGraphic != null)
- {
- m_HandleGraphic.color = m_Interactable ? m_EnabledColor : m_DisabledColor;
- }
- if (slider.wholeNumbers && m_HasDots)
- {
- for (int i = 0; i < m_DotGraphics.Length; i++)
- {
- if (m_DotGraphics[i] != null)
- {
- m_DotGraphics[i].color = slider.value > i ? (m_Interactable ? m_EnabledColor : m_DisabledColor) : m_BackgroundColor;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement