1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 17:26:03 +08:00

21 lines
556 B
C#

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEngine.SceneManagement;
public class TempPro : MonoBehaviour
{
public GameObject target;
IEnumerator Start()
{
GameObject newPath = Instantiate(target);
newPath.transform.SetParent(this.transform.parent, false);
yield return new WaitForSeconds(1);
newPath = Instantiate(target);
newPath.transform.SetParent(this.transform.parent, false);
yield return new WaitForSeconds(2);
}
}