mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-21 01:36:05 +08:00
17 lines
335 B
C#
17 lines
335 B
C#
using DG.Tweening;
|
|
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class KillVSKillTarget : MonoBehaviour
|
|
{
|
|
public Transform[] targets;
|
|
|
|
void Start()
|
|
{
|
|
targets[0].DOMoveX(2, 2).SetRelative().SetId(1);
|
|
targets[1].DOMoveY(2, 2).SetRelative();
|
|
DOTween.Kill(targets[0]);
|
|
// DOTween.Kill(1);
|
|
// DOTween.Kill(null);
|
|
}
|
|
} |