void IPointerDownHandler.OnPointerDown(PointerEventData eventData) { if (enabled) { if (!_Started) { Start(); } TweenScale.Tween(target.gameObject, duration, pressed, style, method); } }
void IPointerExitHandler.OnPointerExit(PointerEventData eventData) { hovered = false; if (enabled) { if (!_Started) { Start(); } TweenScale.Tween(target.gameObject, duration, _Scale, TweenMain.Style.Once, method); } }
void IPointerEnterHandler.OnPointerEnter(PointerEventData eventData) { hovered = true; if (enabled) { if (!_Started) { Start(); } TweenScale.Tween(target.gameObject, duration, hover, style, method); } }
void IPointerDownHandler.OnPointerDown(PointerEventData eventData) { if (enabled) { if (!_Started) { Start(); } Button btn = GetComponent <Button>(); if (btn != null && !btn.interactable) { return; } TweenScale.Tween(target.gameObject, duration, target.localScale, pressed, style, method); } }
void IPointerExitHandler.OnPointerExit(PointerEventData eventData) { hovered = false; if (enabled) { if (!_Started) { Start(); } Button btn = GetComponent <Button>(); if (btn != null && !btn.interactable) { return; } TweenScale.Tween(target.gameObject, duration, target.localScale, _Scale, TweenMain.Style.Once, method); } }
void IPointerUpHandler.OnPointerUp(PointerEventData eventData) { if (enabled) { if (!_Started) { Start(); } if (hovered) { TweenScale.Tween(target.gameObject, duration, hover, style, method); } else { TweenScale.Tween(target.gameObject, duration, _Scale, TweenMain.Style.Once, method); } } }