how to disable script and enable it in unity code example
Example: unity deactive code from code
public MonoBehaviour script;
void Start()
{
script.enabled = false;
}
public MonoBehaviour script;
void Start()
{
script.enabled = false;
}