//enable GetComponent<Collider>().enabled = true; //disabled GetComponent<Collider>().disabled = false;