void endHighScoreEdit() { highScoreHandler.EditHighScoreComplete( ); // All done - Better save those scores. HighScoresManager.SaveHighScores(HighscoresFile); // Let other systems know editing is DONE! currentHighScoreEvent.EventType = RFHighScoreEventType.RFHIGH_SCORE_EDIT_DONE; onRFHighScoreEvent.Invoke(currentHighScoreEvent); // reset some values currentHighScoreEvent = null; mostRecentHighScore = null; highScoreHandler = null; }
// Add a score to the list; if it is a high score go into "collect initials" mode public bool AddScore(int score) { RFHighScore scoreData = HighScoresManager.AddNewScore(score, NewScoreInitials); // If it was a high score, reset the display.. if (scoreData != null) { mostRecentHighScore = scoreData; currentHighScoreEvent = new RFHighScoreEventData(); currentHighScoreEvent.HighScoreData = scoreData; displayHighScores(); // Let other systems know a new high score was just submitted rfHighScoreEvent.Invoke(currentHighScoreEvent); } return(scoreData != null); }