Exemplo n.º 1
0
    void StartGame()
    {
        levelUIController.SetLevelCompletePanelActive(false);
        levelUIController.SetTryAgainPanelActive(false);

        //重置所有位置
        movesLeft = level.maximumMoves;
        score     = 0;

        levelUIController.SetMovesLabelText(movesLeft.ToString());
        levelUIController.SetScoreLabelText(score.ToString());

        //重置连击
        level.ResetComboMultiplier();

        //开始动画
        boardController.AnimateStartGame();

        //洗牌重置
        Shuffle();
    }