void FindPlayerNode(Player player) { if (_gameManager.currentPlayer == null) { return; } startNode = NodeList.Find(i => i.Coordinate == GameUtility.Coordinate(player.transform.position)); }
void FindEnemyNode(Enemy enemy) { if (_gameManager.currentPlayer == null) { return; } startNode = NodeList.Find(i => i.Coordinate == GameUtility.Coordinate(enemy.transform.position)); }
public void SetDjikstraRootById(int id) { DijkstraRoot = NodeList.Find(n => n.Element.id == id); }