public void updateBackgroundImage(BACKGROUND_IMAGE image)
    {
        switch (image)
        {
        case BACKGROUND_IMAGE.BLACK:
            this.backgroundImage.sprite = blackImage;
            break;

        case BACKGROUND_IMAGE.PHONE:
            this.backgroundImage.sprite = phoneImage;
            break;
        }
    }
Beispiel #2
0
    public void SetBackground(BACKGROUND_IMAGE eType)
    {
        UISprite p = m_transform.FindChild("Background").gameObject.GetComponent <UISprite>();

        switch (eType)
        {
        case BACKGROUND_IMAGE.NORMAL:   p.spriteName = "Bg_Shop_Tipbox"; break;

        case BACKGROUND_IMAGE.BOX:      p.spriteName = "Bg_Gch_Tipbox01"; break;

        case BACKGROUND_IMAGE.RIGHT:
        {
            p.spriteName = "Bg_Shop_TipboxRight";
            m_vMovePos   = new Vector3(-110f, 0, 0);
        }
        break;
        }
    }