Astar_demo/Assets/NodeData.cs
2023-11-28 11:29:52 +05:30

20 lines
343 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NodeData : MonoBehaviour
{
public float fCost =0;
public float gCost = 0;
public float hCost =0;
public Vertex parent;
public void Reset(){
fCost = 0;
gCost =0;
hCost = 0;
parent=null;
}
}