title: Increment through a list on a button list
body: <p>I've stored a list of colors in my program. I am after an object in my scene to one of the colors in the list. So far, I have done the followings:</p>
  
  <pre><code>if(Input.GetKeyDown(KeyCode.O))
  {
      for(int i = 0; i &lt; claddingColor.Count; i++)
      {
          claddingMaterial.color = claddingColor[i];
      }
  }
  </code></pre>
  
  <p>This isn't working due to a reason I know (and you can probably spot) but I lack to the verbal fortitude to write it down.</p>
  
  <p>As opposed to have a multiple lines of the following:</p>
  
  <pre><code>claddingMaterial.color = claddingColor[0];
  </code></pre>
  
  <p>Each tied to different buttons, I like a way I can emulate the above but tie it to a single button press. Thus, if I hit the 0 button 5 times, it will loop through each color stored in the list. If I hit it for a sixth time, it will go back to the first color in the list.</p>
  
  <p>Could someone please help me implement this? Or point me to something that I may learn how to do it for myself?</p>