disabling component not working unity 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;