Created
November 5, 2018 14:36
-
-
Save chittai/d2e4be6f12c4a225b27b12d9bf6c069a to your computer and use it in GitHub Desktop.
DOTweenでオブジェクトをシーケンシャルに動かす
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 UnityEngine; | |
using DG.Tweening; | |
public class SequenceSample : MonoBehaviour { | |
public GameObject cubeGroup; | |
void Start () { | |
Sequence sequence = DOTween.Sequence() | |
.Append(cubeGroup.transform.DOMoveY(1,1)) | |
.Append(cubeGroup.transform.GetChild(1).DORotate(new Vector3(180f,0f),0.5f)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment