public void setUneuip(TowerComponent tc) { this.tc = tc; _icon.url = "image/atk"; _name.text = "卸下"; if (tc != null) { _detail.text = tc.getEffects(); } else { _detail.text = "No Equip"; } }
public void setInfo(TowerComponent tc) { this.tc = tc; if (tc == null) { cIcon.url = GameConstant.TOWER_COMPONENT_ICON_PATH + "empty"; _detail.text = ""; } else { cIcon.url = GameConstant.TOWER_COMPONENT_ICON_PATH + tc.cid; _detail.text = tc.cname + "\n" + tc.getEffects(); } }
public void updateView(TowerComponent tc) { this.tc = tc; if (tc == null) { _icon.url = GameConstant.TOWER_COMPONENT_ICON_PATH + "empty"; _name.text = ""; _detail.text = ""; } else { _icon.url = GameConstant.TOWER_COMPONENT_ICON_PATH + tc.cid; _name.text = tc.cname; _detail.text = tc.getEffects(); } }