Hi , i want to ask how to save all the player record even i closed game? Current i'm use game saver and persistent active data. But nothing happen ,
Thanks
Game Save After Closed Game
-
- Posts: 4
- Joined: Fri Dec 02, 2016 1:44 am
Re: Game Save After Closed Game
I already see example you provide , but i cant understand how it work . Hope you can help
Re: Game Save After Closed Game
Hi,
If you want to save on quit and reload on start, it's easier to use a small script like this, added to your Dialogue Manager:
Autosave.cs
If you want to save on quit and reload on start, it's easier to use a small script like this, added to your Dialogue Manager:
Autosave.cs
Code: Select all
using UnityEngine;
using PixelCrushers.DialogueSystem;
public class Autosave : MonoBehaviour {
public string saveKey = "SavedGame";
void Start() {
if (PlayerPrefs.HasKey(saveKey)) PersistentDataManager.ApplySaveData(PlayerPrefs.GetString(saveKey));
}
void OnApplicationQuit() {
PlayerPrefs.SetString(saveKey, PersistentDataManager.GetSaveData());
}
}
-
- Posts: 4
- Joined: Fri Dec 02, 2016 1:44 am
Re: Game Save After Closed Game
Thanks! I'll try that
-
- Posts: 4
- Joined: Fri Dec 02, 2016 1:44 am
Re: Game Save After Closed Game
I Have another question , can we make login and register system using this asset?
Re: Game Save After Closed Game
No, the Dialogue System isn't a good fit for that. You might try something like WordPress Login.Syncheizner wrote:I Have another question , can we make login and register system using this asset?