unity enabling and disabling components 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;