You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
745 B
31 lines
745 B
8 years ago
|
using UnityEngine;
|
||
|
using System.Collections;
|
||
8 years ago
|
using System.Collections.Generic;
|
||
8 years ago
|
using UnityEngine.SceneManagement;
|
||
|
|
||
|
namespace Fungus
|
||
|
{
|
||
8 years ago
|
public class GameSaver : MonoBehaviour
|
||
8 years ago
|
{
|
||
|
[SerializeField] protected string startScene = "";
|
||
|
|
||
8 years ago
|
[SerializeField] protected List<Flowchart> flowcharts = new List<Flowchart>();
|
||
|
|
||
|
#region Public methods
|
||
|
|
||
|
public List<Flowchart> Flowcharts { get { return flowcharts; } }
|
||
|
|
||
8 years ago
|
public virtual void Save()
|
||
|
{
|
||
|
var saveManager = FungusManager.Instance.SaveManager;
|
||
|
saveManager.Save();
|
||
|
}
|
||
|
|
||
|
public virtual void LoadScene(string sceneName)
|
||
|
{
|
||
|
SceneManager.LoadScene(sceneName);
|
||
|
}
|
||
8 years ago
|
|
||
|
#endregion
|
||
8 years ago
|
}
|
||
|
}
|