public void SetHexInfo(uint index, int hexId, UnitSide side, Dictionary <UnitSide, float> powers) { if (text == null) { return; } builder.Clear(); builder.Append(GetHeader(index, hexId)); foreach (var kvp in powers) { builder.AppendLine() .Append(kvp.Key.GetName()) .AppendFormat(powerFmt, kvp.Value); } text.SetText(builder); text.color = ColorDictionary.GetSideColor(side); }