how to deactivate objects through scripts in 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 deactivate objects through scripts in unity
public GameObject Object; //drag your object in from the hierarchy
Object.enabled = true; //enables object
Object.enabled = false; //disables object