private void LoadWeekData() { string loadDateString; weekDataObj = new SaveDataObject(); weekDataObj.Init(); weekDataObj.InitSum(); for (int i = 0; i < 7; i++) { loadDateString = CreateFilename(-i); LoadData(loadDateString, weekDataObj); } }
private void LoadMonthData() { string loadDateString; monthDataObj = new SaveDataObject(); monthDataObj.Init(); monthDataObj.InitSum(); for (int i = 0; i < 30; i++) { loadDateString = CreateFilename(-i); LoadData(loadDateString, monthDataObj); } }
// Start is called before the first frame update void Start() { gameState = "StartGame"; currentGridClick = -1; // Load Previous Data todayDateString = CreateFilename(0); Debug.Log(todayDateString); saveDataObj = new SaveDataObject(); saveDataObj.Init(); saveDataObj.InitSum(); LoadData(todayDateString, saveDataObj); // for (int i = 0; i < 26; i++) { Debug.Log("LP" + saveDataObj.medlevelPlayed[i]); } // LoadWeekData(); LoadMonthData(); // playVOAudio("title_new"); // toggleMusicOn(); }