20 lines
343 B
C#
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;
|
|
}
|
|
}
|