Diabled scripts with OnCollsion get call

I use two scripts, both of them have OnCollision function. And when I disabled one of them, the OnCollsion function still get call even it is disabled. Does this is one bug ? If so, I have to make sure the scipt is enabled ?

Attached here is the test project.

1156388–44098–$CollsionTest.unitypackage (5.15 KB)

I have seen that one , it is definitely cause a problem when ur script is disabled or enabled because there is no difference whether it is enabled or disabled.
Not Sure, may be the unity3d guys can explain it in detail or fix the problem…

Just check the enabled attribute to avoid if you need the script works only if it is enabled.

example

if(enabled)’
{
// your code
}