Exemplo n.º 1
0
 void IPointerDownHandler.OnPointerDown(PointerEventData eventData)
 {
     if (enabled)
     {
         if (!_Started)
         {
             Start();
         }
         TweenScale.Tween(target.gameObject, duration, pressed, style, method);
     }
 }
Exemplo n.º 2
0
 void IPointerExitHandler.OnPointerExit(PointerEventData eventData)
 {
     hovered = false;
     if (enabled)
     {
         if (!_Started)
         {
             Start();
         }
         TweenScale.Tween(target.gameObject, duration, _Scale, TweenMain.Style.Once, method);
     }
 }
Exemplo n.º 3
0
 void IPointerEnterHandler.OnPointerEnter(PointerEventData eventData)
 {
     hovered = true;
     if (enabled)
     {
         if (!_Started)
         {
             Start();
         }
         TweenScale.Tween(target.gameObject, duration, hover, style, method);
     }
 }
Exemplo n.º 4
0
 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);
     }
 }
Exemplo n.º 5
0
 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);
     }
 }
Exemplo n.º 6
0
 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);
         }
     }
 }