public void SetProfile(JsonData.SimplifiedPlayerInfo info) { uIPlayerProfileHead.SetPlayer(info); if (info.VIPLevel == 0) { if (crownSwitch.Value) { crownSwitch.Switch(); } crownSwitch.Enabled = false; } else { crownSwitch.Enabled = true; } }
//private void RefreshButton_OnClick(UIMouseEvent evt, UIElement listeningElement) //{ // RefreshFriends(); //} public void SetProfile(JsonData.SimplifiedPlayerInfo info) { uIPlayerProfileHead.SetPlayer(info); }