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