how to enable disable components in unity code code example
Example: enabling and disabling components unity
//Enable or disable a component in Unity example:
component.enabled = false;
//Enable or disable a component in Unity example:
component.enabled = false;