Пример #1
0
 /// <summary>
 /// Removes a ParallaxXScrollerComponent from the list of active parallax scrollers.
 /// </summary>
 /// <param name="scroller">The ParallaxXScrollerComponent to be added.</param>
 public void UnregisterParallaxScroller(ParallaxXScrollerComponent scroller)
 {
     if (_parallaxScrollers.Contains(scroller))
         _parallaxScrollers.Remove(scroller);
 }
Пример #2
0
 /// <summary>
 /// Adds the ParallaxXScrollerComponent to the list of active parallax scrollers.
 /// </summary>
 /// <param name="scroller">The ParallaxXScrollerComponent to be added.</param>
 public void RegisterParallaxScroller(ParallaxXScrollerComponent scroller)
 {
     if (!_parallaxScrollers.Contains(scroller) && scroller.Owner as T2DScroller != null)
         _parallaxScrollers.Add(scroller);
 }