public void CreateNewSaveData()
    {
        Debug.Log("Creating new Save");

        SaveData newSaveData = new SaveData();

        newSaveData.upgradeData.Add(0);
        newSaveData.upgradeData.Add(0);
        newSaveData.saleModifier          = 1f;
        newSaveData.patienceModifier      = 1f;
        newSaveData._totalCompletedOrders = 100;


        newSaveData.count_playerInventory.Add(10);
        newSaveData.count_playerInventory.Add(0);
        newSaveData.count_playerInventory.Add(0);
        newSaveData.count_playerInventory.Add(10);
        newSaveData.count_playerInventory.Add(0);
        newSaveData.count_playerInventory.Add(0);
        newSaveData.saveSlotNumber = selectedSaveSlot;


        SerializationManager.CreateNewSave($"SaveDataSlot_{selectedSaveSlot}", newSaveData);
        GameManager.instance.selectedSaveSlot = selectedSaveSlot;
        GameManager.instance.selectedSaveData = newSaveData;
    }
Beispiel #2
0
 public void CreateNewSave(string saveName)
 {
     SerializationManager.CreateNewSave(saveName, GameManager.instance.playerStats, GameManager.instance.worldValues);
 }