Пример #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
 }