Advertisement
Guest User

Untitled

a guest
May 24th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. tempDictionary = "(PlayerName=" + PlayerName.text.ToString () + ")(PlayerAvatar=" + PlayerData.PlayerAvatar.ToString () + ")(PlayerScore=0)";
  2.             string[] t = tempDictionary.Split (new[] { '(', ')' }, System.StringSplitOptions.RemoveEmptyEntries);
  3.             PlayerData.playerData.userList =
  4.                 t.Select (item => item.Split ('=')).ToDictionary (s => s [0], s => s [1]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement