//Slide the selector bar
TweenPosition tp = colorScrollSpy.GetComponent<TweenPosition>();
Vector3 tempVec = GameObject.Find(currentColor).gameObject.transform.localPosition;
Vector3 currentVec = colorScrollSpy.transform.localPosition;
tp.from = currentVec;
tp
.to = new Vector3
(currentVec
.x, tempVec
.y, currentVec
.z);
tp.duration = 0.5f;
tp.PlayForward();