unity how to disable and enable gameobject with script code example
Example: how to deactivate objects through scripts in unity
public GameObject Name = GameObject.Find("Name");
Name.enabled = true;
public GameObject Name = GameObject.Find("Name");
Name.enabled = true;