Unity disable a script but still running code example Example: disable script in unity GameObject.Find("Cube").GetComponent<MoveObject>().enabled = false;