private void GetSaveData() { if (SaveLoad.SaveExists("PlayerData.sav")) { Data = SaveLoad.Load <PlayerData>("PlayerData.sav"); } else { SaveLoad.NewSave(); Data = SaveLoad.Load <PlayerData>("PlayerData.sav"); } }
private void InitializeUnlockedItems() { if (SaveLoad.SaveExists("ShopItemsUnlocked.sav")) { ShopItemsUnlocked = SaveLoad.Load <List <int> >("ShopItemsUnlocked.sav"); } else { ShopItemsUnlocked = new List <int>(); SaveUnlockedItems(); } }