title: How to change the material on a trigger?
body: <p>I'm doing the Uniy tutorial called "<a href="https://unity3d.com/es/learn/tutorials/s/roll-ball-tutorial" rel="nofollow noreferrer">Roll-a-ball</a>" trying to make some changes. Now in trying to change the material of the boxes for 0.5 seconds 
  before being removing when you collect them, but I'm a little lost with this.</p>
  
  <p>My idea was to do it in the <em>OnTriggerEnter</em> method that removes the boxes when you collect them, in the script of the sphere that the player controls.</p>
  
  <p>This is my method. Here I remove the box and increase the score: </p>
  
  <pre class="lang-c# prettyprint-override"><code>private void OnTriggerEnter(Collider other) {
      Destroy(other.gameObject);
      puntos += 1;
      IncrementarPuntos();
  }
  </code></pre>
  
  <p>Any idea how I can do this?</p>