using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;
namespace DisComputer
{
/*
* @func 零件图标飞入
* */
public class SpareFly : MonoBehaviour
{
///
/// 零件icon飞动效
///
///
///
///
public void FlyAction(Vector3 endPos,System.Action finish)
{
this.transform.DOMove(endPos,1.5f).SetEase(Ease.OutCubic).OnComplete(()=>
{
finish?.Invoke();
Destroy(this.gameObject);
});
}
}
}