You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
905 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
using UnityEngine.UI;
public class MoveTool : Singleton<MoveTool>
{
public void MoveTarger(Transform start,Vector3 target,float Vlaue)
{
start.DOMove(target, Vlaue);
}
public void MoveTarger(Transform start, Vector3 target)
{
start.DOMove(target, 2);
}
public void MoveTarget(Transform start,Transform target)
{
start.DOMove(target.position, 2);
}
public void Teleportation(GameObject obj,GameObject target)
{
}
public void Teleportation(GameObject obj, Vector3 target)
{
}
public void MoveScale(GameObject obj,int value)
{
obj.transform.DOScale(new Vector3(value, value, value), 0.3f);
CanvasGroup can = obj.GetComponent<CanvasGroup>();
can.DOFade(value , 0.2f);
}
}