IndieGame/client/Assets/Scripts/System/Save/SceneSaveManager.cs

26 lines
502 B
C#
Raw Normal View History

2024-10-11 10:12:15 +08:00

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();
}
}
}