August 2018
Beginner
334 pages
10h 19m
English
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;
}
}
Read now
Unlock full access