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.
This commit is contained in:
juliuse98
2021-09-22 20:33:11 +02:00
committed by GitHub
parent bec6953ffa
commit 5770d41a0c
4 changed files with 158 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
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; }
}