Skip to content

Instantly share code, notes, and snippets.

@baobao
Last active December 7, 2018 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baobao/69dbcab56b919ad6a3d021a33ca66eb0 to your computer and use it in GitHub Desktop.
Save baobao/69dbcab56b919ad6a3d021a33ca66eb0 to your computer and use it in GitHub Desktop.
Restart Sample
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
public class DOTween1_1_570 : MonoBehaviour
{
IEnumerator Start()
{
var tw = transform.DOLocalMoveX(2f, 2f).SetDelay(1f);
yield return new WaitForSeconds(2f);
// 第1引数 : includeDelayが、true且つ第2引数が0以上だと、delay値は上書きされる
tw.Restart(false, 3f);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment