1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-21 01:36:05 +08:00
2015-04-08 10:57:19 +02:00

21 lines
565 B
C#

using DG.Tweening;
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class Temp : BrainBase
{
public Transform target;
public void TweenThis(int direction)
{
Debug.Log("HERE");
if (DOTween.IsTweening("infoTabSwipeAnim")) {
Debug.Log("IsTweening");
// DOTween.Rewind("infoTabSwipeAnim", false);
DOTween.Kill("infoTabSwipeAnim", true);
}
target.DOLocalMoveX(direction*800, 0.3f, false).From().SetEase(Ease.OutBack).SetId("infoTabSwipeAnim");
}
}