how to deactivate objects through scripts in unity

C#
public GameObject Name = GameObject.Find("Name");

Name.enabled = true;
Source

Also in C#: