示例#1
0
 public void UpdateCoreHp(ModuleObj CoreObj)
 {
     if (PlayerManager.instance.ModuleMap[CoreObj.rawIndex, CoreObj.rolIndex].type.Equals(ModuleType.Core))
     {
         CoreHpText.text = string.Format("Core Hp: {0}/{1}", CoreObj.currentHp, CoreObj.totalHp);
     }
 }
示例#2
0
        public static ModuleObj MagicMapper(this TblModule item)
        {
            if (item == null)
            {
                return(null);
            }

            ModuleObj obj = new ModuleObj
            {
                LabelE   = item.LabelE,
                ParentId = item.ParentId
            };

            return(obj);
        }
示例#3
0
 //更新特定装备栏颜色
 public void UpdateSlotState(ModuleObj modObj)
 {
     ModuleSlotUIMap[modObj.rawIndex, modObj.rolIndex].GetComponent <ModuleStateSlot>().UpdateState(modObj.CalHpPercent());
 }
示例#4
0
 // Use this for initialization
 void Awake()
 {
     LastShootTime = Time.time;
     root          = GetComponentInParent <Player>();
     moduleObj     = GetComponent <ModuleObj>();
 }