Files
fps-citybuild-unity/Assets/Scripts/PathGenerator.cs
juliuse98 5770d41a0c Add files via upload
This adds the PathNode class and the PathMap class which generates a path for a NPC to follow to a desired position.
2021-09-22 20:33:11 +02:00

18 lines
381 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PathNode
{
private Vector3 position;
public Vector2 index;
private float score;
public PathNode(Vector3 Pos, float Score) {
position = Pos;
score = Score;
}
public Vector3 Position { get => position; set => position = value; }
}