i have a script that is attached to my prefab.there is nearly 20 objects are created . for each them the script is same.
i need to disable the script when the collision occurs according to the relative object .
it does what i need . am also checked in hierarchy .the script is disabled.
even though the script is the function in the script still running.
what i do.
i couldn’t destroy the script why i need to use it later.