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