18 lines
297 B
C#
18 lines
297 B
C#
using UnityEngine;
|
|
|
|
public class SaveManager : MonoBehaviour
|
|
{
|
|
[SerializeField] private string ApiUrl;
|
|
|
|
private void Awake()
|
|
{
|
|
SessionStore.ApiUrl = ApiUrl;
|
|
SessionStore.Load();
|
|
}
|
|
|
|
private void OnApplicationQuit()
|
|
{
|
|
SessionStore.Save();
|
|
}
|
|
}
|