title: Setting material in static class other than null
body: <p>In a static class I have a static variable that has a material set to null, this is then rewritten to other values through another piece of code. The only problem with this is when the game starts the ball has no material, it is just a 2d pink circle. I've tried multiple ways of setting the Ball material to something other than null but none work.</p>
  
  <p>Here is the code i have in the static:</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  static class ballmaterial 
  {
      public static Material BallMaterial = null;
  }
  </code></pre>
  
  <p>any help would be appreciated, thanks :)</p>