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>
    /// A Getter and Setter Property which allows it's own behavior to regulate the index for newFontColors;
    /// </summary>
    private float whatIsColor = 0;

    /// <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 ++;
        if (whatIsColor >= newFontColors.Length) _i = 0;
        SetColor();
    }

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

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

Raw Text