MainGame.EndGame C# (CSharp) Method

EndGame() public method

public EndGame ( float newScore ) : void
newScore float
return void
    public void EndGame(float newScore)
    {
        GameIsRunning = false;
        Instantiate (scoreScreen);
        Highscore(newScore);
        menuScreen.SetActive(true);
    }