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