This code is running fine, but not in debug mode. The event at line 213 is entering infinitely, but I'm not colliding with any of these objects, while 214 is not entering a single time. I have no clue what is causing this because it wasn't doing that yesterday and I didn't change anything regarding to that routine. Also, even If changed something that affects this routine, why It only happens in debug mode? I'm really confused about this.
edit: I was using the line 213 directly, but I separated them and created this function just to test and show more clearly what is happening