still trying to fix astar

This commit is contained in:
Simon O'Shea
2023-08-08 19:27:43 -04:00
parent f347e50d11
commit 8507bec1bc
3 changed files with 4 additions and 6 deletions
@@ -99,6 +99,7 @@ using UnityEngine;
onSample = CanSample();
if (onSample.x == 1)
{
Debug.Log("SAMPLING");
Node child = new Node(this, this.agent, this.samples, 'S', this.distanceTraveled + 1, this.heuristic);
child.samples.RemoveAt(onSample.y);