unity on disable discover what script disable a object code example
Example: disable script in unity
GameObject.Find("Cube").GetComponent<MoveObject>().enabled = false;
GameObject.Find("Cube").GetComponent<MoveObject>().enabled = false;