mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-20 17:26:03 +08:00
16 lines
394 B
C#
16 lines
394 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using DG.Tweening;
|
|
using UnityEngine;
|
|
|
|
public class PathEndOffset : MonoBehaviour
|
|
{
|
|
public Transform target, toTarget, lookAt;
|
|
|
|
void Start()
|
|
{
|
|
target.DOPath(new Vector3[]{ toTarget.position }, 5, PathType.CatmullRom, PathMode.Full3D)
|
|
.SetLookAt(lookAt)
|
|
.SetEase(Ease.InOutCubic);
|
|
}
|
|
} |