public GameData OnSave() { var scoreSaver = new ScoreData(); scoreSaver.Score = CurrentScore; return(scoreSaver); }
public void OnLoad(GameData data) { ScoreData sData = (ScoreData)data; CurrentScore = sData.Score; UpdateScore(); }
public GameData OnSave() { ScoreData s = new ScoreData(); s.Score = CurrentScore; return(s); }
public GameData OnSave() { ScoreData scoreData = new ScoreData(); scoreData.Score = CurrentScore; return(scoreData); }
public GameData OnSave() { // TODO fill me in ScoreData quickmaths = new ScoreData(); quickmaths.Score = CurrentScore; return(quickmaths); }
public void OnLoad(GameData data) { // TODO fill me in ScoreData update = (ScoreData)data; CurrentScore = update.Score; UpdateScore(); }
public GameData OnSave() { // TODO fill me in ScoreData temp = new ScoreData(); temp.Score = CurrentScore; return(temp); }
public void OnLoad(GameData data) { ScoreData score = data as ScoreData; CurrentScore = score.Score; }