1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 09:16:02 +08:00
2015-03-18 19:30:48 +01: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);
}
}