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