GetComponent ().enabled = true;
GetComponent ().enabled = false;
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Attach a new script with TurnOn() and TurnOff() functions, and write the code to enable/disable your intended component in them, e.g.: You can then use the Object: Send message Action to turn them on/off as you like.