/// <summary> /// Deletes all the registry entries with PlayerPrefs or Deletes the default folder with EasySave. /// </summary> public void DeleteEverything() { ES2.DeleteDefaultFolder(); }
IEnumerator LoadDatas() { Debug.Log("****Dataの初期化"); bool isNewUser = false; if (Application.isEditor && isDeleteData) { Debug.Log("データを新規作成"); ES2.DeleteDefaultFolder(); CreateNewData(); isNewUser = true; LoadData(); } else { if (!ES2.Exists(DataFilename + "?tag=SPOfferLeft")) { Debug.Log("データを新規作成"); CreateNewData(); LoadData(); isNewUser = true; LoadingMenuManager.Instance.SetProgress(1, "creating datas"); yield return(new WaitForSeconds(1.0f)); } else { Debug.Log("データをロード"); LoadData(); LoadingMenuManager.Instance.SetProgress(1, "loading datas"); yield return(new WaitForSeconds(1.0f)); } } Debug.Log("****TimeManagerの初期化"); LoadingMenuManager.Instance.SetProgress(1, "updating time"); if (TimeManager.Instance.CheckSameDayLogin(GAMEDATA.lastLoginTime, GAMEDATA.RenzokuLogin)) { //同じ日 Debug.Log("同じ日"); LakeEnvironmentalParamas.Instance.InitWeather(isNewUser, false); } else { //違う日 Debug.Log("違う日"); LoadingMenuManager.Instance.SetProgress(1, "set environment"); LakeEnvironmentalParamas.Instance.InitWeather(isNewUser, true); if (ES2.Load <int>(DataFilename + "?tag=DayFromInstall") <= 7) { ES2.Save(ES2.Load <int>(DataFilename + "?tag=DayFromInstall") + 1, DataFilename + "?tag=DayFromInstall"); Debug.Log("" + ES2.Load <int>(DataFilename + "?tag=DayFromInstall")); } //月が同じかをチェックする。 if (GAMEDATA.currentEntry != null) { Debug.Log("エントリしている"); if (GAMEDATA.currentEntry.year != TimeManager.Instance.currentYear) { Debug.Log("年変わり"); OnNextMonth(); } else { if (GAMEDATA.currentEntry.month != TimeManager.Instance.currentMonth) { Debug.Log("月変わり"); OnNextMonth(); } else { Debug.Log("同じ月"); } } } else { Debug.Log("エントリなし"); } //GPGSListener.Instance.GetCurrentPushID(); } yield return(new WaitForSeconds(2.5f)); if (Application.isEditor && isLoadMain) { PS_Plugin.Instance.LoadScene("MainScene"); } }