unity deactivate scripts in list

C#
 public List<MonoBehaviour> Scripts = new List<MonoBehaviour>();

    void Update()
    {
        foreach (var sc in Scripts)
        {
          //Active Scripts in List
          sc.enabled = true;
          //Deactive Scripts in List
          sc.enabled = false;
        }            
    }
Source

Also in C#: