public static void savePlayerScore(SavePlayerScoreCVO __cvo) { int stage = __cvo.stage; //so salvo se o score for maior que o score ja salvo pro mesmo stage float scoreSaved = PlayerPrefs.GetFloat(getScoreKey(stage)); if (scoreSaved > __cvo.score) { return; } trySaveStage(stage); PlayerPrefs.SetFloat(getScoreKey(stage), __cvo.score); PlayerPrefs.SetFloat(getTimeSpentKey(stage), __cvo.timeSpent); PlayerPrefs.SetInt(getNeuronsKey(stage), __cvo.neurons); PlayerPrefs.SetInt(getStarsKey(stage), __cvo.stars); }
protected override void createClientValueObject() { _cvo = new SavePlayerScoreCVO(); }