I need to create a leaderboard in my game.I have two fields Name and Score.How can i store this name and score locally in unity using prefs.And I need to retrive all the name and their score from the player prefs.Can anybody please help me out

I would suggest serialising your data and saving it as a string using PlayerPrefs.SetString.

[1] is currently my format of choice.

[SimpleJSON][2] can be used with Unity.

  [1]: http://en.wikipedia.org/wiki/JSON
  [2]: http://wiki.unity3d.com/index.php/SimpleJSON