protected override void OnStart ()
{
GameObject bg = (mBG != null && mBG.collider != null) ? mBG.gameObject : gameObject;
UIEventListener bgl = UIEventListener.Get(bg);
bgl.onPress += OnPressBackground;
bgl.onDrag += OnDragBackground;
if (thumb != null && thumb.collider != null && (mFG == null || thumb != mFG.cachedTransform))
{
UIEventListener fgl = UIEventListener.Get(thumb.gameObject);
fgl.onPress += OnPressForeground;
fgl.onDrag += OnDragForeground;
}
}