示例#1
0
        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);
        }
示例#2
0
 void IMouseInfo.GetMouseInfo(MouseInfoArgs args)
 {
     args.Value = Value;
 }
示例#3
0
 void IMouseInfo.GetMouseInfo(MouseInfoArgs args)
 {
     args.Value = string.Format("Durability {0:F1}%", 100.0f * m_Durability);
 }
示例#4
0
 void IMouseInfo.GetMouseInfo(MouseInfoArgs args)
 {
     args.Value += GetMouseInfo();
 }