Example #1
0
 public void Save()
 {
     if (PlayerPrefs.HasKey("Save"))
     {
         saveState = SaveReader.ReturnSave();
     }
     FillItem();
     PlayerPrefs.SetString("Save", SaveHelper.Serialize <SaveState>(saveState));
     PlayerPrefs.SetString("Gun", SaveHelper.Serialize <bool[]>(gun));
     PlayerPrefs.SetString("Body", SaveHelper.Serialize <bool[]>(body));
 }