how to disable a script on an object unity code example
Example 1: how to deactivate objects through scripts in unity
public GameObject Name = GameObject.Find("Name");
Name.enabled = true;
Example 2: how to turn off scrips in unity
this.enabled = false;