Advertisement
Saxy_Guy

Untitled

May 16th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.64 KB | None | 0 0
  1. public Color enabledColor
  2. {
  3.     get { return m_EnabledColor; }
  4.     set
  5.     {
  6.         m_EnabledColor = value;
  7.  
  8.         if (m_HandleGraphic != null)
  9.         {
  10.             m_HandleGraphic.color = m_Interactable ? m_EnabledColor : m_DisabledColor;
  11.         }
  12.  
  13.         if (slider.wholeNumbers && m_HasDots)
  14.         {
  15.             for (int i = 0; i < m_DotGraphics.Length; i++)
  16.             {
  17.                 if (m_DotGraphics[i] != null)
  18.                 {
  19.                     m_DotGraphics[i].color = slider.value > i ? (m_Interactable ? m_EnabledColor : m_DisabledColor) : m_BackgroundColor;
  20.                 }
  21.             }
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement