title: C# Object Reference not set to an instance of an object error
body: <p>I am getting the error in the title when I run this code during the <code>Add</code> method. The <code>Add</code> method should add the gameobject to a list called queue.<br>
  <code>GameObject</code> is a class.<br>
  <code>GameManager</code> is a class as well.<br>
  <code>queue</code> is a list.  </p>
  
  <p>I think this is the only code relevant.</p>
  
  <pre><code>    static void Main()
      {
          GameObject obj1 = new GameObject();
          GameManager manager1 = new GameManager();
          obj1.name = "First";
          manager1.Add(obj1);
          manager1.Process();
      }
  
      public void Add(GameObject gameObject)
      {
          gameObject.initialize = true;
          queue.Add(gameObject);
      }
  </code></pre>