public void ShowCommonIcon(long uuid, bool isShow, HeadInfoManager.HeadInfoData data, HeadInfoUnit ui) { if (data == null) { return; } data.isShowCommonIcon = isShow; if (ui != null) { ui.SetAndShowCommonIcon(data.Show(data.isShowCommonIcon), data.commonIcon); } }
public void SetCommonIcon(long uuid, int iconId) { HeadInfoManager.HeadInfoData data = this.GetData(uuid); if (data == null) { return; } data.commonIcon = iconId; HeadInfoUnit uI = this.GetUI(uuid); if (uI != null) { uI.SetAndShowCommonIcon(data.Show(data.isShowCommonIcon), iconId); } }