Overwrite on PlayerPref things

I want to update new battle map key by writing on PlayerPref.SetString(“battleMap”, battlemapkey), at first it works but overwrite it on and on, it goes null string. I don’t know why this is happened.

May be you could try calling this after SetString

PlayerPrefs.Save();

http://docs.unity3d.com/Documentation/ScriptReference/PlayerPrefs.Save.html

This is not necessary before (at least prior to Unity 3.5), but its better to have this line now to flush the data into hard drive.