Пример #1
0
    void CheckFallBall(ComBox box)
    {
        if (box.check)
        {
            return;
        }
        box.check = true;
        box.link  = true;

        List <ComBox> neighbors = boxManager.GetNeighborBoxs(box);

        foreach (ComBox boxTemp in neighbors)
        {
            CheckFallBall(boxTemp);
        }
    }