Turning off more than one collider on the same GameObject?

I have a Sphere Collider and a Box Collider on the same GameObject and I would like to turn the ‘isTrigger’ on and off. I can turn one of the colliders off, but not the other one with the script below. Is there a way to write this script specifying a Box Collider or a Sphere Collider or what ever collider I use? Right now I can only use the member ‘collider’. How do I define the type of Collider to turn off? Note: I need to keep the declared variable as a GameObject. Thanx for any help.

var myLExit : GameObject;

function OnTriggerEnter( myTrigger : Collider){
      if(myTrigger.gameObject.name == "Mtrigger2"){
	        
			myLExit.collider.isTrigger = false;
			yield WaitForSeconds(1);
			myLExit..collider.isTrigger = true;
					
		}
}

Not sure if it's a good idea or not to use more than one collider on the same object, or if it even works... does it??

I’d make empty game object(s), childed to the main object, with the extra collider(s) attached to the empty child(ren) , and then loop through them with something like this.

var myLExit : GameObject ;
 
function OnTriggerEnter(myTrigger : Collider){
   if(myTrigger.gameObject.name == "Mtrigger2"){
     myLExit.collider.isTrigger = false ;
     var parentTrans = myLExit.transform ;
        for(var x : Transform in parentTrans){
           x.collider.isTrigger = false ;
        }
     yield WaitForSeconds(1) ;
     myLExit.collider.isTrigger = true ;
        for(var x : Transform in parentTrans){
           x.collider.isTrigger = true ;
        }
     }
}