public LeaderBoard() { highscoreManager = new OnlineHighScore(); board = highscoreManager.getScores(); updateTimer = 0; //Add back button backButton = new Button("BACK", Color.LightGreen, Color.DarkGreen, Fonts.FNT_MENU); backButton.Position = SCREEN_SIZE.ToVector2() - backButton.Dimensions; Add(backButton); }
public HandleHighscores() { highscoreHandler = new OnlineHighScore(); scoreBoard = highscoreHandler.getScores(); }