public void UpdateColor (bool shouldBeEnabled, bool immediate)
{
if (tweenTarget)
{
if (!mStarted)
{
mStarted = true;
Init();
}
Color c = shouldBeEnabled ? defaultColor : disabledColor;
TweenColor tc = TweenColor.Begin(tweenTarget, 0.15f, c);
if (immediate)
{
tc.color = c;
tc.enabled = false;
}
}
}
}