mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-20 09:16:02 +08:00
19 lines
383 B
C#
19 lines
383 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using DG.Tweening;
|
|
using UnityEngine;
|
|
|
|
public class DebugMode : BrainBase
|
|
{
|
|
public Transform target;
|
|
|
|
IEnumerator Start()
|
|
{
|
|
yield return new WaitForSeconds(0.5f);
|
|
|
|
Debug.Log("Destroy target then try to create tween");
|
|
Destroy(target.gameObject);
|
|
target.DOMoveX(2, 2);
|
|
}
|
|
}
|