void CreatePassage(Island islandA, Island islandB, Coord tileA, Coord tileB)
    {
        Island.ConnectIslands(islandA, islandB);

        List <Coord> line = GetLine(tileA, tileB);

        foreach (Coord c in line)
        {
            DrawCircle(c, 1);
        }
    }
Beispiel #2
0
    void CreatePassage(Island islandA, Island islandB, Coord tileA, Coord tileB)
    {
        Island.ConnectIslands(islandA, islandB);
        Debug.DrawLine(CoordToWorldPoint(tileA), CoordToWorldPoint(tileB), Color.red);

        List <Coord> line = GetPassageLine(tileA, tileB);

        foreach (Coord c in line)
        {
            DrawCircle(c, UnityEngine.Random.Range(3, 5));
        }
    }