Files
beyond/Assets/Scripts/Save/BeyondSaveMgr.cs
2024-11-20 15:21:28 +01:00

46 lines
738 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using PixelCrushers;
using RootMotion;
using Sirenix.OdinInspector;
using UnityEngine;
namespace Beyond
{
public class BeyondSaveMgr : Singleton<BeyondSaveMgr>
{
[Button]
public void Save()
{
SaveSystem.SaveToSlot(0);
}
[Button]
public void Load()
{
SaveSystem.LoadFromSlot(0);
}
private void OnDestroy()
{
Clear(gameObject);
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
}