code with google code example Example: unity deactive code from code public MonoBehaviour script; void Start() { script.enabled = false; }