mistyping MonoBehaviour functions
Howdy,
Could be that I am overlooking something at the moment, but to me it seems easy to create errors in the script by mistyping functions that the class inheritances from Monobehaviour.
With that I mean e.g. typing OnCollisionEvent instead of OnCollisionEnter. Since this happenend to me in a small learning project, I noticed fairly fast that I mistyped OnCollisionEvent and could correct the problem. But it did had me for a few minutes thinking what the heck was wrong in my code without Monodevelop showing any signs of error (feel free to correct me if I am overlooking something). Now I could imagine that making this mistake can give a small headache in large projects.
My question is, would it be possible to somehow prevent it from making these mistakes besides double/tripple checking your code? Perhaps an option to highlight syntax of Monobehaviour functions so its easier to check if one wrote the function correctly?
Thanks
using your example, both of those calls are valid so the only safety net is for you to double & triple check your code...which you're already doing, right? ;)
Sry for late reply, didn't see your reply unit now. Your right. Though I think that if those parts are highlighted with a special color it is much easier to track down mistakes / tripple check relevant code ;-)