title: The script is missing a checkbox
body: <p>I was programming a script and when I want to add it to GameObject, I notice that the enable check disappeared and can't to drag to scripts to the inspector for this component <code>Event Script</code>.</p>
  
  <p>I tried change the names of the scripts but there aren't changes.</p>
  
  <p>The script to add:</p>
  
  <pre class="lang-cs prettyprint-override"><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class EventScript : MonoBehaviour
  {
      private GameObject obj;
  
      public SaveObjScript saveObjScript;
      public SpawnScript spawnScript;
  
      public void InitObject(){
          Debug.Log("OBJETO A ACCIONAR ES: " + saveObjScript.getObject().name);
          //obj = saveObjScript.getObject();
      }
  
      public void ChangeColor(){
          InitObject();
          Renderer rend = obj.GetComponent&lt;Renderer&gt;();
          rend.material.color = Random.ColorHSV();
      }
  
      public void RemoveObj(){
          InitObject();
          Destroy(obj);
          spawnScript.mTotalObjetos --;
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/LMbkd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LMbkd.png" alt="Script disabled"></a></p>