public void Write(bool value) { //Debug.Log("Save value: " + value); GameDataWriter.SetBool(prefsIndex++.ToString(), value); }