Your myCounter variable probably does not have the value you anticipate. [Debug][1] it in monobehaviour and see what is going on.
[1]: http://docs.unity3d.com/Documentation/Manual/Debugger.html
↧