// Use this for initialization void Start() { mouse = this.GetComponent <MouseOverUI>(); buttons = new ItemInfoButton[this.transform.childCount]; for (int i = 0; i < buttons.Length; i++) { buttons[i] = this.transform.GetChild(i).GetComponent <ItemInfoButton>(); } }
public void show(MouseOverUI mouse) { this.mouse = mouse; this.transform.GetChild(0).gameObject.GetComponent <Text>().text = item.getName(); this.transform.GetChild(1).gameObject.GetComponent <Text>().text = "Stats \n Watt: " + item.getDamage() + " \n Matt: " + item.getMagicAttack() + " \n Luk: " + item.getLuk() + ""; //this.gameObject.SetActive(true); isShowing = true; this.transform.position = new Vector3(this.mouse.position().x, this.mouse.position().y, 0f); }
public void show(MouseOverUI mouse) { this.mouse = mouse; //this.transform.GetChild(1).gameObject.GetComponent<Text>().text = //"Stats \n Watt: " + item.getDamage() + " \n Matt: " + item.getMagicAttack() + " \n Luk: " + item.getLuk() + ""; InventoryInformationString data = displayInfo(); name.text = data.getName(); description.text = data.getDescription(); statsText.text = data.getString(); //this.gameObject.SetActive(true); isShowing = true; this.transform.position = new Vector3(this.mouse.position().x, this.mouse.position().y, 0f); }
public void Start() { mouse = GetComponent <MouseOverUI>(); }
void Start() { this.mouse = this.GetComponent <MouseOverUI>(); this.image = this.GetComponent <Image>(); }
void Start() { this.mouse = this.GetComponent <MouseOverUI>(); skillTree = this.transform.root.Find("SkillTree_UI").Find("SkillTree(Clone)").GetComponent <SkillTree>(); }