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
using UnityEngine; |
|
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine.SceneManagement; |
|
|
|
namespace Fungus |
|
{ |
|
public class GameSaver : MonoBehaviour |
|
{ |
|
[SerializeField] protected string startScene = ""; |
|
|
|
[SerializeField] protected List<Flowchart> flowcharts = new List<Flowchart>(); |
|
|
|
#region Public methods |
|
|
|
public List<Flowchart> Flowcharts { get { return flowcharts; } } |
|
|
|
public virtual void Save() |
|
{ |
|
var saveManager = FungusManager.Instance.SaveManager; |
|
saveManager.Save(); |
|
} |
|
|
|
public virtual void LoadScene(string sceneName) |
|
{ |
|
SceneManager.LoadScene(sceneName); |
|
} |
|
|
|
#endregion |
|
} |
|
} |