/// <summary> /// 穿装备后飘出增加的属性 文本 /// </summary> private void ShowPutEquipEffect() { EquipmentInfoWnd wnd = WndManager.FindDialog <EquipmentInfoWnd>(); if (wnd) { Dictionary <int, int> equipAddAttrs = wnd.GetEquipAddAttr(); int count = 0; foreach (var item in equipAddAttrs) { string text = string.Format("99800{0:000}", item.Key); text = NGUIUtil.GetLocalizationStr(text); if (text != "") { string value = item.Value.ToString(); NGUIUtil.AddHudTextShow(gameObject, MyHead.HudText, text + "+" + value, Color.green, count == 0 ? 0f : 0.8f); count++; } } } }