void createTitleView() { TitleView = NpcTitleView.Create(); TitleView.UpdateName(UserManager.Instance.self.nickname, UserManager.Instance.self.vipLevel, UserManager.Instance.self.uid); if (UserManager.Instance.self.prestige > 0) { LaddersTitleSample sample_1 = LaddersConfigManager.Instance.config_Title.M_getTitle(UserManager.Instance.self.prestige); LaddersMedalSample sample_2 = LaddersConfigManager.Instance.config_Medal.M_getMedalBySid(LaddersManagement.Instance.currentPlayerMedalSid); TitleView.UpdatePlayerTitle(true, sample_1, sample_2); } else { TitleView.UpdatePlayerTitle(false, null, null); } }
void createTitleView() { TitleView = NpcTitleView.Create(); TitleView.UpdateName(data.name, data.vipLevel, data.uid); if (data.titleSid > 1) { LaddersTitleSample sample_1 = LaddersConfigManager.Instance.config_Title.M_getTitleBySid(data.titleSid); LaddersMedalSample sample_2 = LaddersConfigManager.Instance.config_Medal.M_getMedalBySid(data.medalSid); TitleView.UpdatePlayerTitle(true, sample_1, sample_2); } else { TitleView.UpdatePlayerTitle(false, null, null); } }