public WispBlockerOverride GetSlider(int index) { WispBlockerOverride slider = components[0]; foreach (var item in components) { if (item.data.index == index) { slider = item; } } return(slider); }
public void BeginSlide(WispBlockerOverride destination, float slideTime) { toPoint = destination.data.restPosition; toIndex = destination.data.index; moveController.BeginMove(transform, toPoint, slideTime, endMethod); }