Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using System;
using System.Threading;
using System.Threading.Tasks;
using DG.Tweening;
using UnityEngine;
// DOTweenAwaiterExtensionサンプルコード(キャンセル処理なし)
public class DOTweenAwaiterExtensionSample : MonoBehaviour
{
async void Start()
{
// 2秒かけてx:3
await transform.DOLocalMoveX(3f, 2f).ToAwaiter();
// 2秒かけてy:3
await transform.DOLocalMoveY(3f, 2f).ToAwaiter();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment