1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 17:26:03 +08:00
2020-01-17 00:11:15 +09:00

19 lines
389 B
C#

using DG.Tweening;
using UnityEngine;
using System.Collections;
public class PathsFree : BrainBase
{
public Transform target;
public Ease ease = Ease.Linear;
public PathType pathType;
public bool closePath;
public Vector3[] waypoints;
IEnumerator Start()
{
yield return new WaitForSeconds(1);
target.DOPath(waypoints, 3, pathType).SetOptions(closePath).SetEase(ease);
}
}