Esempio n. 1
0
    //!Tworzy nowy zapis gry.
    public void newGame()
    {
        string filePath = Application.persistentDataPath + "/" + currentSave.LastLocation + " " + DateTime.Now.ToString("dd/MM/yyyy hh/mm/ss tt") + ".save";

        saveDataController.FilePath   = filePath;
        saveDataController.LoadedSave = currentSave;
        saveDataController.saveToFile();
        saveDataController.load();
    }
Esempio n. 2
0
 //!Zapisuje grę.
 public void saveGame()
 {
     saveDataController.updateSaveData();
     saveDataController.saveToFile();
 }