Example #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();
    }
 //!Ładuje ostatni zapis.
 public void loadLastSave()
 {
     saveDataController.loadSaveFile();
     saveDataController.load();
 }