protected void FindNextPathPosition() { if (_path.PathNodes.Length == 0) { _path.PathNodes = new Transform[] { _path.transform }; } //Debug.Log("Next Position"); Vector3 newPos = _path.GetNextNode().position; navMeshAgent.SetDestination(newPos); }