unity how to set a script inactive from another script code example Example: how to turn off scrips in unity this.enabled = false;