Ejemplo n.º 1
0
    public void SetRune_Item_img(Button.Rune rune, int cnt)
    {
        switch (rune)
        {
        case Button.Rune.RUNE1:
            for (int i = 0; i < User.m_listInvetory.Count; i++)
            {
                Rune1_item_bt[i].GetComponent <Image>().enabled  = true;
                Rune1_item_bt[i].GetComponent <Button>().enabled = true;
            }
            break;

        case Button.Rune.RUNE2:
            for (int i = 0; i < User.m_listInvetory.Count; i++)
            {
                Rune2_item_bt[0].GetComponent <Image>().enabled  = true;
                Rune2_item_bt[0].GetComponent <Button>().enabled = true;
            }
            break;

        case Button.Rune.RUNE3:
            for (int i = 0; i < User.m_listInvetory.Count; i++)
            {
                Rune3_item_bt[0].GetComponent <Image>().enabled  = true;
                Rune3_item_bt[0].GetComponent <Button>().enabled = true;
            }
            break;
        }
    }
Ejemplo n.º 2
0
    static public void RuneImgReset(Button.Rune rune)
    {
        switch (rune)
        {
        case Button.Rune.RUNE1:
            LoonImg[0].sprite = R1_s;
            break;

        case Button.Rune.RUNE2:
            LoonImg[5].sprite = R2_s;
            break;

        case Button.Rune.RUNE3:
            LoonImg[1].sprite = R3_s;
            break;
        }
    }
Ejemplo n.º 3
0
    static public void SetRuneImg(Button.Rune rune)
    {
        switch (rune)
        {
        case Button.Rune.RUNE1:
            Sprite rune1 = Resources.Load <Sprite>("Tex/rune1");
            LoonImg[0].sprite = rune1;
            break;

        case Button.Rune.RUNE2:
            Sprite rune2 = Resources.Load <Sprite>("Tex/rune3");
            LoonImg[5].sprite = rune2;
            break;

        case Button.Rune.RUNE3:
            Sprite rune3 = Resources.Load <Sprite>("Tex/rune2");
            LoonImg[1].sprite = rune3;
            break;
        }
    }