NodeData.cs 343 B

12345678910111213141516171819
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class NodeData : MonoBehaviour
  5. {
  6. public float fCost =0;
  7. public float gCost = 0;
  8. public float hCost =0;
  9. public Vertex parent;
  10. public void Reset(){
  11. fCost = 0;
  12. gCost =0;
  13. hCost = 0;
  14. parent=null;
  15. }
  16. }