Пример #1
0
    public void gameOver(int status)
    {
        // if status == 1 then it's a win
        // TODO: we should change the game over dialog to be win or lose based on result
        bool aWin = false;

        if (status == 0)
        {
            aWin = checkForWin();
        }
        if (UIDisplayComponent)
        {
            mode = InteractMode.GAMEOVER;

            if (status == 1 || aWin)
            {
                UIDisplayComponent.showGameOver(true);
            }
            else
            {
                UIDisplayComponent.showGameOver(false);
            }
        }
    }