Exemple #1
0
    public void SaveGame()
    {
        if (InCurrentStory)
        {
        }

        SaveStamp = DateTime.Now;
        SavedDate = SaveStamp.ToFileTime();

        //MonoBehaviour.print("Save #" + SaveStamp.Hour + SaveStamp.Minute + SaveStamp.Second);

        Self.Save();

        SavedSceneList = new List <TimeStamp>();

        foreach (string scene in SceneList.Keys)
        {
            SceneList[scene].Scene = scene;
            SavedSceneList.Add(new TimeStamp(SceneList[scene]));
        }

        SavedPathData = new List <SceneData>();

        foreach (string scene in ScenePath.Keys)
        {
            SavedPathData.Add(new SceneData(scene, ScenePath[scene]));
        }
    }