public void refreshNameColor(INameObj role, int rednmstate) { if (!dItem.ContainsKey(role)) { return; } PlayerNameItem item = dItem[role]; item.refresNameColor(rednmstate); }
public void refreshNameColor(INameObj role, int rednmstate) { bool flag = !this.dItem.ContainsKey(role); if (!flag) { PlayerNameItem playerNameItem = this.dItem[role]; playerNameItem.refresNameColor(rednmstate); } }