Skip to content

Instantly share code, notes, and snippets.

@chittai
Created November 5, 2018 14:36
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 chittai/d2e4be6f12c4a225b27b12d9bf6c069a to your computer and use it in GitHub Desktop.
Save chittai/d2e4be6f12c4a225b27b12d9bf6c069a to your computer and use it in GitHub Desktop.
DOTweenでオブジェクトをシーケンシャルに動かす
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