void IMouseInfo.GetMouseInfo(MouseInfoArgs args) { var health = GetComponent <Health>(); var maxhp = health.m_MaxHealth; string perkstr = ""; if (m_Perks.Count > 0) { perkstr += "("; foreach (var perk in m_Perks) { perkstr += perk.Key + " "; } perkstr += ")"; } args.Value = string.Format("Level {0} {1} hp" + perkstr, Level, maxhp); }
void IMouseInfo.GetMouseInfo(MouseInfoArgs args) { args.Value = Value; }
void IMouseInfo.GetMouseInfo(MouseInfoArgs args) { args.Value = string.Format("Durability {0:F1}%", 100.0f * m_Durability); }
void IMouseInfo.GetMouseInfo(MouseInfoArgs args) { args.Value += GetMouseInfo(); }