Пример #1
0
    void UpdateFontColor()
    {
        hue        = hue + Random.Range(0.5f, 4f);
        saturation = saturation + Random.Range(0.0035f, 0.005f);

        hue        = hue % 256;
        saturation = Mathf.Max((saturation % 1.0f), 0.3f);

        fontColor = ColorExt.ColorFromHSV(hue, saturation, 0.35f, 1);

        text.color = fontColor;
    }