ChangeColor() public method

public ChangeColor ( int elemNo, StyleManager color ) : void
elemNo int
color StyleManager
return void
        public void SetLabel(AXsollaShopItem.AdType type, string text)
        {
            StyleManager.BaseColor newColor = StyleManager.BaseColor.b_normal;
            switch (type)
            {
            case XsollaShopItem.AdType.NONE:
                newColor = StyleManager.BaseColor.b_normal;
                break;

            case XsollaShopItem.AdType.SPECIAL_OFFER:
                newColor = StyleManager.BaseColor.b_special_offer;
                break;

            case XsollaShopItem.AdType.BEST_DEAL:
                newColor = StyleManager.BaseColor.b_best_deal;
                break;

            case XsollaShopItem.AdType.RECCOMENDED:
                newColor = StyleManager.BaseColor.b_recomended;
                break;
            }
            colorController.ChangeColor(0, newColor);
            colorController.ChangeColor(2, newColor);
            if (type == XsollaShopItem.AdType.NONE)
            {
                ItemLable.SetActive(false);
            }
            else
            {
                ItemLableText.text = text;
                ItemLable.SetActive(true);
            }
        }
        public void PrepareStatus(XsollaStatus.Group group, string state, string purchase, string invoice)
        {
            Component[] texts = status.GetComponentsInChildren(typeof(Text), true);           // [0] Icon [1] Title [2] purchse
//              Image bg = status.GetComponent<Image> ();
            ColorController colorController = GetComponent <ColorController> ();

            ((Text)texts[1]).text = state;
            if (purchase != null && purchase != "")
            {
                ((Text)texts[2]).text = purchase;
                texts[2].gameObject.SetActive(true);
            }
            else
            {
                texts[2].gameObject.SetActive(false);
            }

            switch (group)
            {
            case XsollaStatus.Group.DONE:
                ((Text)texts[0]).text = "";
                colorController.ChangeColor(1, StyleManager.BaseColor.bg_ok);
                break;

            case XsollaStatus.Group.TROUBLED:
                ((Text)texts[0]).text = "";
                colorController.ChangeColor(1, StyleManager.BaseColor.bg_error);
//					bg.color = new Color (0.980392157f, 0.454901961f, 0.392156863f);
                break;

            case XsollaStatus.Group.INVOICE:
            case XsollaStatus.Group.DELIVERING:
            case XsollaStatus.Group.UNKNOWN:
            default:
                ((Text)texts[0]).text = "";
                ((Text)texts[0]).gameObject.AddComponent <MyRotation>();
                colorController.ChangeColor(1, StyleManager.BaseColor.selected);
//					bg.color = new Color (0.639215686f, 0.552941176f, 0.847058824f);
                StartCoroutine(UpdateStatus(invoice));
                break;
            }
        }