예제 #1
0
    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);
        }
    }
예제 #2
0
    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);
        }
    }
예제 #3
0
 // 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();
 }