Ejemplo n.º 1
0
    void onGameOver()
    {
        _gameOverScreen.Show();
        _gameScreen.Hide();

        _spawnPoint.enabled = false;

        _flippers.RotateDown();
        _flippers.enabled = false;

        _gameOverScreen.SetFinalScore(_score);
        _score = 0;

        //Inform subscribers
        onScoreChanged?.Invoke(_score);
    }