Esempio n. 1
0
    public void Makestart(int size, List <List <int> > Map)
    {
        bool isselect = false;
        int  startx   = 0;
        int  starty   = 0;

        while (!isselect)
        {
            startx = Random.Range(0, size - 1);
            starty = Random.Range(0, size - 1);

            if (Map[startx][starty] != 0)
            {
                isselect = true;
            }
        }

        move.Setting(startx, starty, size, Map);
    }