// 当鼠标按下任何一个滑块时调用 public void BeginSlide(AAttribute currentAttribute, PointerEventData eventData) { _currentAttribute = currentAttribute; _eventData = eventData; _beginValue = currentAttribute.value; _beginRestValue = _restValue; }
// 当鼠标从任何一个滑块释放时调用 public void EndSlide() { _currentAttribute = null; }
public void Init(MultiAttributesSlider multiAttributesSlider, AAttribute attribute) { _multiAttributesSlider = multiAttributesSlider; _attribute = attribute; }