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); }
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); }