Untitled

                Never    
C#
       
public Text myText;
    public int startingFontSize = 16;
    public Color startingFontColor = Color.black;

    public int maxFontSize = 50;
    public int minFontSize = 2;

    public Color[] newFontColors;
    /// <summary>
    /// Private integer to keep the variable for WhatIsColor.
    /// </summary>
    private int _i = 0;
    /// <summary>
    /// A Getter and Setter Property which allows it's own behavior to regulate the index for newFontColors;
    /// </summary>
    private float whatIsColor
    {
        get { return _i; }
        set
        {
            _i = value;
            if (_i >= newFontColors.Length) _i = 0;
            if (_i <= -1) _i = newFontColors.Length;
        }
    }

    /// <summary>
    /// Initial start, assign color and fonts
    /// </summary>
    private void Start()
    {
        myText.fontSize = startingFontSize;
        myText.color = startingFontColor;
    }

    /// <summary>
    /// Tell the code to add the index for the "WhatIsColor" and then update the color
    /// </summary>
    public void fontColorGoingUpThroughList()
    {
        whatIsColor += 1f;
        SetColor();
    }

    /// <summary>
    /// Tell the code to subtract the index for the "WhatIsColor" and then update the color
    /// </summary>
    public void fontColorGoingDownThroughList()
    {
        whatIsColor -= 1f;
        SetColor();
    }

    /// <summary>
    /// Call to set the color and fonts... apparently?
    /// </summary>
    private void SetColor()
    {
        myText.fontSize = startingFontSize;
        myText.color = newFontColors[whatIsColor];
    }

Raw Text