Beispiel #1
0
    void quitVisited()
    {
        int          playerIndex = getActualTurn();
        GameObject   player      = InformationTransfer.getPlayer(playerIndex);
        SelectVertex script      = player.GetComponent <SelectVertex>();

        for (int i = 0; i < 26; i++)
        {
            if (script.isVisited(i))
            {
                distance[i] = -1;
            }
        }
    }
 bool isVisited(int vertex)
 {
     return(playerScript.isVisited(vertex));
 }