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); } }
public static ModuleObj MagicMapper(this TblModule item) { if (item == null) { return(null); } ModuleObj obj = new ModuleObj { LabelE = item.LabelE, ParentId = item.ParentId }; return(obj); }
//更新特定装备栏颜色 public void UpdateSlotState(ModuleObj modObj) { ModuleSlotUIMap[modObj.rawIndex, modObj.rolIndex].GetComponent <ModuleStateSlot>().UpdateState(modObj.CalHpPercent()); }
// Use this for initialization void Awake() { LastShootTime = Time.time; root = GetComponentInParent <Player>(); moduleObj = GetComponent <ModuleObj>(); }