예제 #1
0
        public static void Prefix(string name)
        {
            //return;
            //Logger.LogWarning("Loading data from slot '{0}' for scene '{1}'", name, "global");
            string filename = "global" + SaveDataManager.DATA_FILENAME_SUFFIX;
            //Logger.Log("Filename: '{0}'", filename);
            string text = SaveGameSlots.LoadDataFromSlot(name, filename);

            //if (text is null) Logger.LogError("Found no data in the slot!");
            //else Logger.Log(text);
            SaveDataManager.Deserialize(text);
        }
예제 #2
0
        public static void Prefix(string name)
        {
            string text = SaveGameSlots.LoadDataFromSlot(name, "global" + SaveDataManager.DATA_FILENAME_SUFFIX);

            SaveDataManager.Deserialize(text);
        }