IndieGame/client/Assets/Scripts/System/Save/SceneSaveManager.cs
DOBEST\zhaoyingjie f242607587 初始化工程
2024-10-11 10:12:15 +08:00

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