feat: load system
This commit is contained in:
parent
5d470a57af
commit
60d20bfe4e
20 changed files with 421 additions and 67 deletions
12
Assets/Scripts/View/SaveLoad.cs
Normal file
12
Assets/Scripts/View/SaveLoad.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace View {
|
||||
public class SaveLoad : MonoBehaviour {
|
||||
private void Start() => LoadGame();
|
||||
|
||||
private void LoadGame() => FindObjectOfType<Dependencies>().Loader.Run();
|
||||
private void SaveGame() => FindObjectOfType<Dependencies>().Saver.Run();
|
||||
|
||||
private void OnApplicationQuit() => SaveGame();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue