how to disable\enable component from a script?
Use GetComponent and set enabled. Documenation
If the code is to enable/disable the current object, just use enabled within your code.
how to disable\enable component from a script?
Use GetComponent and set enabled. Documenation
If the code is to enable/disable the current object, just use enabled within your code.