Esempio n. 1
0
        void FindPlayerNode(Player player)
        {
            if (_gameManager.currentPlayer == null)
            {
                return;
            }

            startNode = NodeList.Find(i => i.Coordinate == GameUtility.Coordinate(player.transform.position));
        }
Esempio n. 2
0
        void FindEnemyNode(Enemy enemy)
        {
            if (_gameManager.currentPlayer == null)
            {
                return;
            }

            startNode = NodeList.Find(i => i.Coordinate == GameUtility.Coordinate(enemy.transform.position));
        }
Esempio n. 3
0
 public void SetDjikstraRootById(int id)
 {
     DijkstraRoot = NodeList.Find(n => n.Element.id == id);
 }