示例#1
0
    void Shuffle()
    {
        //清除所有item
        boardController.RemoveAllAnimalViews();

        //查找所有可以交换的swap
        HashSet <Animal> newAnimals = level.Shuffle();

        //增加item
        boardController.AddViewsForAnimals(newAnimals);
    }