unity deactive code from code

C#
public MonoBehaviour script;

void Start()
{
script.enabled = false;
}
Source

Also in C#: