protected override YxBaseGameUserInfo OnInitUser(ISFSObject userData) { var userInfo = new SssUserInfo(); userInfo.Parse(userData); return(userInfo); }
/// <summary> /// 设置玩家信息 /// </summary> /// <param name="userInfo"></param> private void SetUserInfo(HistoryUserInfo userInfo) { SssUserInfo sssUser = userInfo.SssUserInfo; PortraitDb.SetPortrait(sssUser.AvatarX, _icon, sssUser.SexI); _nameLabel.text = sssUser.NickM; SetTotalScoreLabel(_scoreLabel, userInfo.Score); //设置总分 }