Complete the code to declare a save slot variable.
int [1] = 1;
The variable slotNumber is a clear and common name for a save slot identifier.
Complete the code to save player data to a slot using PlayerPrefs.
PlayerPrefs.SetString("SaveSlot" + [1], playerData);
Using slotNumber in the key string helps identify which save slot is being saved.
Fix the error in the code to load data from a save slot.
string data = PlayerPrefs.GetString("SaveSlot" + [1], "");
The variable slotNumber correctly identifies the save slot to load.
Fill both blanks to check if a save slot exists and load it.
if (PlayerPrefs.HasKey("SaveSlot" + [1])) { string data = PlayerPrefs.GetString("SaveSlot" + [2], ""); }
Both blanks use slotNumber to check and load the correct save slot.
Fill all three blanks to delete a save slot and confirm its removal.
PlayerPrefs.DeleteKey("SaveSlot" + [1]); if (!PlayerPrefs.HasKey("SaveSlot" + [2])) { Debug.Log("Save slot " + [3] + " deleted successfully."); }
All blanks use slotNumber to delete and confirm the correct save slot.
