void IPointerDownHandler.OnPointerDown(PointerEventData eventData) { if (enabled) { if (!_Started) { Start(); } TweenPos.Tween(target.gameObject, duration, _Pos + pressed, style, method); } }
void IPointerExitHandler.OnPointerExit(PointerEventData eventData) { hovered = false; if (enabled) { if (!_Started) { Start(); } TweenPos.Tween(target.gameObject, duration, _Pos, TweenMain.Style.Once, method); } }
void IPointerEnterHandler.OnPointerEnter(PointerEventData eventData) { hovered = true; if (enabled) { if (!_Started) { Start(); } TweenPos.Tween(target.gameObject, duration, _Pos + hover, style, method); } }
void IPointerUpHandler.OnPointerUp(PointerEventData eventData) { if (enabled) { if (!_Started) { Start(); } if (hovered) { TweenPos.Tween(target.gameObject, duration, _Pos + hover, style, method); } else { TweenPos.Tween(target.gameObject, duration, _Pos, TweenMain.Style.Once, method); } } }