Check out example codes for "unity deactivate scripts in list". It will help you in understanding the concepts better.

Code Example 1

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;
        }            
    }

Learn ReactJs, React Native from akashmittal.com