26 lines
502 B
C#
26 lines
502 B
C#
|
|
|||
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace Ether
|
|||
|
{
|
|||
|
public class SceneSaveManager : MonoBehaviour
|
|||
|
{
|
|||
|
ES3AutoSaveMgr mgr;
|
|||
|
|
|||
|
private void Awake()
|
|||
|
{
|
|||
|
mgr = GetComponent<ES3AutoSaveMgr>();
|
|||
|
mgr.settings.path = "TempSceneSave.es3";
|
|||
|
mgr.Load();
|
|||
|
}
|
|||
|
|
|||
|
private void OnDestroy()
|
|||
|
{
|
|||
|
mgr.settings.path = "TempSceneSave.es3";
|
|||
|
mgr.Save();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|