Example #1
0
    public void Restart()
    {
        Debug.Assert(HasEnoughLives, "Not enough lives to restart the game! Check HasEnoughLives() before calling Restart().");

        player.Default();
        ball.Default();

        StartCoroutine(StartGame());
    }