25 lines
543 B
C#
25 lines
543 B
C#
using UnityEngine;
|
|
using static GameplayManager;
|
|
|
|
public class SaveLoadButtons : MonoBehaviour
|
|
{
|
|
public void OnSaveClicked()
|
|
{
|
|
ES3SingleStore.Save();
|
|
ES3AutoSaveMgr.Current.Save();
|
|
}
|
|
public void OnLoadClicked()
|
|
{
|
|
ES3AutoSaveMgr.Current.Load();
|
|
SaveFlags.IsLoading = true;
|
|
if (!ES3SingleStore.Load())
|
|
Debug.LogWarning("No save file exists yet.");
|
|
SaveFlags.IsLoading = false;
|
|
}
|
|
|
|
public void OnDeleteClicked()
|
|
{
|
|
ES3SingleStore.Delete();
|
|
}
|
|
}
|