public void GCostCheckToUpdate(float gCost, PathNodeModel form) { if (gCost > GCost && GCost != 0) { return; } GCost = gCost; PrevNode = form; }
public void SetDefault() { GCost = 0; HCost = 0; PrevNode = null; }
public void SetPrevNode(PathNodeModel node) { PrevNode = node; View.gameObject.name = $"ID {Id} gCost {GCost} hCost {HCost} fCost {FCost}"; //TODO: delete it }