how to enchance the performance when there are hundreds of cube on the scene and each cube has the independent script

[7479-qq截图20130204102346.jpg|7479]
when the scene start ,there is thousands of cube on the scene,the cube can move and turn around behaviour.the script is easy but there are many script and update method in the meantime.how to enchance the performance?

If youre using unityPro you can use Beast’s OcclusionCuilling

Have you done any profiling? That is step number one - understand what is slow!