Exemplo n.º 1
0
    public void GameOver()
    {
        if (gameState == GameState.Menu)
        {
            return;
        }
        gameState = GameState.Menu;

        ClearRemainingNotes();
        swarm.DestroyAll();
        clock.Off();

        meterDisplay.Hide();
        musicMat.Hide();
        titleDisplay.Show();
        instructionDisplay.Show();
        foreach (var canvas in scoreDisplays)
        {
            var forPlayer = canvas.forPlayer - 1;
            canvas.SetHits(scores[forPlayer].Hits);
            canvas.SetMisses(scores[forPlayer].Misses);
            canvas.SetAccuracy(scores[forPlayer].Accuracy);
            canvas.Show();
        }
    }