Score.onGameOver C# (CSharp) Method

onGameOver() public method

public onGameOver ( ) : void
return void
    public void onGameOver()
    {
        if (score > bestScore) {
            PlayerPrefs.SetInt ("Highscore", score);
            bestScore = score;
        }
    }