mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-21 01:36:05 +08:00
24 lines
433 B
C#
24 lines
433 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using DG.Tweening;
|
|
|
|
public class IndexOutOfRange03 : MonoBehaviour
|
|
{
|
|
public GameObject prefab;
|
|
|
|
IEnumerator Start()
|
|
{
|
|
DOTween.Init(true);
|
|
|
|
for (int i = 0; i < 100; ++i) {
|
|
GameObject go = Instantiate(prefab);
|
|
go.transform.DOMoveX(2, 4);
|
|
}
|
|
|
|
yield return new WaitForSeconds(2);
|
|
|
|
Debug.Log("Complete all");
|
|
DOTween.CompleteAll();
|
|
}
|
|
} |