public void SaveFreePlayClearData() { var saveData = _saveDataRepository.Load(); // クリア済みの場合 if (saveData.clearData[_levelEntity.GetLevel()]) { return; } saveData.clearData[_levelEntity.GetLevel()] = true; _saveDataRepository.Save(saveData); }
private void FixedUpdate() { // Call the Move function of the ball controller ball.Move(move, jump); jump = false; // Call the save / load functions if (save) { _saveDataRepository.Save(ball); save = false; } if (load) { _saveDataRepository.Load(ball); load = false; } }
public LanguageUseCase(ISaveDataRepository saveDataRepository, ILanguageRepository languageRepository) { _language = new ReactiveProperty <LanguageType>(saveDataRepository.Load().language); _languageRepository = languageRepository; }
public RankingScreenUseCase(ISaveDataRepository saveDataRepository, ILanguageRepository languageRepository) { language = saveDataRepository.Load().language; _languageScreenData = languageRepository.Find(language); }
public SaveDataUseCase(ISaveDataRepository saveDataRepository) { _saveDataRepository = saveDataRepository; _saveData = _saveDataRepository.Load(); }