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

22 lines
431 B
C#

using DG.Tweening;
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class Temp : BrainBase
{
public Transform target;
IEnumerator Start()
{
target.DOMoveX(2, 3).OnComplete(()=> {
Debug.Log("call");
target.GetComponent<TempMonoBehaviour>().Goco();
Debug.Log("after call");
});
yield return new WaitForSeconds(1);
target.gameObject.SetActive(false);
}
}