예제 #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
파일: Teleporter.cs 프로젝트: AnonK2/planet
 void IMouseInfo.GetMouseInfo(MouseInfoArgs args)
 {
     args.Value = Value;
 }
예제 #3
0
파일: Durability.cs 프로젝트: AnonK2/planet
 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();
 }