Exemple #1
0
        public IEnumerator Started()
        {
            yield return(new WaitForSeconds(1f));

            mainColors = data.GetColors();
            NotificationsActive();
        }
Exemple #2
0
 public void ColorUpdate(ColorsGame color)//Смена цвета (магазин)
 {
     startCut.GetComponent <Image>().color = color.colorTouches;
     endCut.GetComponent <Image>().color   = color.colorTouches;
     lr.startColor = color.colorCutLine;
     lr.endColor   = color.colorCutLine;
 }
Exemple #3
0
    public void UpdateColors()
    {
        ColorsGame colorsGame = data.GetColors();

        for (int i = 0; i < lengthSelects; i++)
        {
            selects[i].color = colorsGame.colorLinesBackground;
        }
        if (selectLock >= 0)
        {
            selects[selectLock].color = colorsGame.colorGraphs;
        }
        if (selectUnlock >= 0)
        {
            selects[selectUnlock].color = colorsGame.colorLines;
        }
        return;
    }
Exemple #4
0
    public void ColorUpdate(ColorsGame color)//Обновление цветов в меню
    {
        c = color.colorBackGround;
        Color altColor = new Color(1f - c.r, 1f - c.g, 1f - c.b, 0.1960784f);
        Color clb      = color.colorLinesBackground;
        Color cii      = color.colorInfoIcons;

        for (int i = 0; i < buts.Length; i++)
        {
            buts[i].GetComponent <Image>().color = clb;
            buts[i].transform.GetChild(0).GetComponent <Image>().color             = c;
            buts[i].transform.GetChild(0).GetChild(0).GetComponent <Image>().color = cii;
        }
        pauseBut.GetComponent <Image>().color = new Color(clb.r, clb.g, clb.b, 0.4f);
        pauseBut.transform.GetChild(0).GetComponent <Image>().color             = new Color(c.r, c.g, c.b, 0.4f);
        pauseBut.transform.GetChild(0).GetChild(0).GetComponent <Image>().color = new Color(cii.r, cii.g, cii.b, 0.4f);

        for (int i = 0; i < texts.Length; i++)
        {
            texts[i].color = clb;
        }
        for (int i = 0; i < images.Length; i++)
        {
            images[i].color = clb;
        }
        for (int i = 0; i < imagesUni.Length; i++)
        {
            imagesUni[i].color = color.colorBackGroundBackGround;
        }
        hand.GetComponent <Image>().color = clb;
        hand.transform.GetChild(0).GetComponent <Image>().color  = c;
        left.transform.GetChild(0).GetComponent <Image>().color  = clb;
        left.transform.GetChild(1).GetComponent <Image>().color  = color.colorTouches;
        right.transform.GetChild(0).GetComponent <Image>().color = clb;
        right.transform.GetChild(1).GetComponent <Image>().color = color.colorTouches;

        progressBar.color           = color.colorTouches;
        sliderSoundBackGround.color = color.colorTouches;
        sliderMusicBackGround.color = color.colorTouches;
        levelNow.color               = color.colorBackGround;
        levelFuture.color            = color.colorBackGround;
        moneyScore3.color            = clb;
        circleBackGroundAction.color = altColor;
    }