// Use this for initialization void Awake() { octile = new Octile(); waypoints = new List <xyLoc>(); astar = new GridAStar(Map.width, Map.height); useVelocity = true; transform.localScale = Vector3.one * Map.scale; }
// Use this for initialization void Start() { octile = new Octile(); waypoints = new List <xyLoc>(); // Sample set of waypoints. Movement is from last to first waypoints.Add(new xyLoc(0, 0)); waypoints.Add(new xyLoc(49, 0)); waypoints.Add(new xyLoc(49, 49)); waypoints.Add(new xyLoc(0, 49)); astar = new GridAStar(50, 50); useVelocity = true; }