Exemple #1
0
 private void LoadBlanckSaveFile()
 {
     playerData = new PlayerData();
     score      = playerData.totalScore;
     lastForm   = playerData.lastForm;
     diamonds   = playerData.diamonds;
     r          = playerData.r;
     g          = playerData.g;
     b          = playerData.b;
     LastLevel  = playerData.lastLevelPlayed;
     LevelStateDictionary.SetAllStates(playerData.levelOpenCloseDictionary);
     ColorStateDictionary.SetAllStates(playerData.colorOpenCloseDictionary);
 }
Exemple #2
0
 private void LoadSaveFile() //TODO: эти методы тут не нужны.
 {
     playerData = SaveFileManager.Load();
     score      = playerData.totalScore;
     lastForm   = playerData.lastForm;
     diamonds   = playerData.diamonds;
     r          = playerData.r;
     g          = playerData.g;
     b          = playerData.b;
     LastLevel  = playerData.lastLevelPlayed;
     LevelStateDictionary.SetAllStates(playerData.levelOpenCloseDictionary);
     ColorStateDictionary.SetAllStates(playerData.colorOpenCloseDictionary);
 }