)
Add a node to the graph at the specified position.
NoteVector3 can be casted to Int3 using (Int3)myVector.
This needs to be called when it is safe to update nodes, which is
AstarPath.active.AddWorkItem(() => {
var graph = AstarPath.active.data.pointGraph;
// Add 2 nodes and connect them
var node1 = graph.AddNode((Int3)transform.position);
var node2 = graph.AddNode((Int3)(transform.position + Vector3.right));
var cost = (uint)(node2.position - node1.position).costMagnitude;
GraphNode.Connect(node1, node2, cost);
});