public override void updateItem(GameObject item, int index) { //base.updateItem (item, index); ButtonStoreEquip button = item.GetComponent <ButtonStoreEquip> (); button.UpdateEquip(equips [index] as Equip, type); }
public override void updateItem(GameObject item, int index) { //base.updateItem (item, index); ButtonStoreEquip button = item.GetComponent <ButtonStoreEquip> (); button.UpdateEquip(equips [index] as Equip, INTENSIFY); if (index == 0 && GuideManager.Instance.getOnTypp() == 30) { button.intensifyButton.gameObject.SetActive(false); } }
public override void initButton(int i) { if (nodeList [i] == null) { nodeList [i] = NGUITools.AddChild(gameObject, equipButtonPrefab); } //nodeList [i].name = StringKit.intToFixString (i + 1); ButtonStoreEquip button = nodeList [i].GetComponent <ButtonStoreEquip> (); // button.UpdateEquip (equips [i] as Equip, type); button.fatherWindow = fatherWindow; button.intensifyButton.fatherWindow = fatherWindow; }
public override void initButton(int i) { if (nodeList [i] == null) { nodeList [i] = NGUITools.AddChild(gameObject, equipButtonPrefab); } nodeList [i].name = StringKit.intToFixString(i + 1); ButtonStoreEquip button = nodeList [i].GetComponent <ButtonStoreEquip> (); //装备仓库中只能强化 button.UpdateEquip(equips [i] as Equip, INTENSIFY); if (i == 0 && GuideManager.Instance.getOnTypp() == 30) { button.intensifyButton.gameObject.SetActive(false); } button.fatherWindow = fatherWindow; button.intensifyButton.fatherWindow = fatherWindow; }