title: how to make a c# script run at scene start in unity
body: <p>I am doing a school project. I need to check the destroyed objects in my scene as soon as the scene starts. problem is I don't know how to make it load or where to attach the c# script. </p>
  
  <pre><code>public static class DestroyedObject {
  
      static List&lt;GameObject&gt; objs = new List&lt;GameObject&gt;();
      public static void Add(GameObject obj) 
      {
          if(!objs.Contains(obj))
              objs.Add(obj); 
      } 
  }
  </code></pre>