about create plane by script

I created a plane by script,but when i added a event on the plane.the OnMouseDown event didn’t work.
In the OnMosueDown function,I try print something ,but nothing displayed.
so ,I what to know ,How to solve this problem.

come on …