Last active
December 7, 2018 03:24
-
-
Save baobao/69dbcab56b919ad6a3d021a33ca66eb0 to your computer and use it in GitHub Desktop.
Restart Sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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