Example #1
0
        void StartSaveLoad()
        {
            Main.Initialise();
            SaveLoad.OnGameLoaded += OnSavedGameLoaded;
            SaveLoad.OnLoadError  += OnLoadError;
            SaveLoad.OnLoadNoData += OnLoadNoData;
            SaveLoad.Initialise();

            slotParams.title    = "Gunhouse";
            slotParams.subTitle = "Load your guns! Rain death from above!";
            slotParams.detail   = "Save Data";
            slotParams.iconPath = Path.Combine(Application.streamingAssetsPath, "SaveIcon.png");

            DataStorage.ResetValues();
            Objectives.ResetValues();
        }
Example #2
0
 public static void DeleteFile()
 {
     SaveLoad.Delete(0, false);
     DataStorage.ResetValues();
     Objectives.ResetValues();
 }