Ejemplo n.º 1
0
 // 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>();
     }
 }
Ejemplo n.º 2
0
 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);
    }
Ejemplo n.º 4
0
 public void Start()
 {
     mouse = GetComponent <MouseOverUI>();
 }
Ejemplo n.º 5
0
 void Start()
 {
     this.mouse = this.GetComponent <MouseOverUI>();
     this.image = this.GetComponent <Image>();
 }
Ejemplo n.º 6
0
 void Start()
 {
     this.mouse = this.GetComponent <MouseOverUI>();
     skillTree  = this.transform.root.Find("SkillTree_UI").Find("SkillTree(Clone)").GetComponent <SkillTree>();
 }