![Unity 2018 Artificial Intelligence Cookbook(Second Edition)](https://wfqqreader-1252317822.image.myqcloud.com/cover/543/36699543/b_36699543.jpg)
上QQ阅读APP看书,第一时间看更新
Getting ready
We need to define a custom data type called PathSegment:
using UnityEngine; using System.Collections; public class PathSegment { public Vector3 a; public Vector3 b; public PathSegment () : this (Vector3.zero, Vector3.zero){} public PathSegment (Vector3 a, Vector3 b) { this.a = a; this.b = b; } }