示例#1
0
        public void GCostCheckToUpdate(float gCost, PathNodeModel form)
        {
            if (gCost > GCost && GCost != 0)
            {
                return;
            }

            GCost    = gCost;
            PrevNode = form;
        }
示例#2
0
 public void SetDefault()
 {
     GCost    = 0;
     HCost    = 0;
     PrevNode = null;
 }
示例#3
0
 public void SetPrevNode(PathNodeModel node)
 {
     PrevNode             = node;
     View.gameObject.name = $"ID {Id} gCost {GCost} hCost {HCost} fCost {FCost}";             //TODO: delete it
 }