private void MGameOverFunctionLibrary_completed(AsyncOperation obj) { Time.timeScale = 1f; AudioListener.volume = 1f; IsFaded = true; CSaveGame.GetInstance().ResetData(); }
private void Exit() { IsPause = false; Time.timeScale = 1; CSaveGame.GetInstance().Save(); CSceneFunctionLibrary.LoadTitle(); }
public void OnClickNewGame() { CSaveGame SaveGame = CSaveGame.GetInstance(); CUserInfo.GetInstance().Init(); SaveGame.Save(); SceneManager.LoadScene("Main", LoadSceneMode.Single); }
public static CSaveGame GetInstance() { if (instance == null) { instance = new CSaveGame(); } return(instance); }
public void OnClickContinue() { CSaveGame SaveGame = CSaveGame.GetInstance(); if (SaveGame.LoadUserInfo()) { SaveGame.Save(); SaveGame.LoadUserInfo(); Debug.Log(CUserInfo.GetInstance().Money); } SceneManager.LoadScene("Main", LoadSceneMode.Single); }
private void Awake() { CheckDataDeleteUI.SetActive(false); CQuestDBManager.GetInstance().DBCreate(); CSaveGame SaveGame = CSaveGame.GetInstance(); if (!SaveGame.LoadControlSetting()) { SaveGame.Save(); SaveGame.LoadControlSetting(); } if (!SaveGame.LoadSoundInfo()) { SaveGame.Save(); SaveGame.LoadSoundInfo(); } }