mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-21 01:36:05 +08:00
21 lines
556 B
C#
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);
|
|
}
|
|
} |