Optimization of detecting if there is an onUpdate by just checking a boolean instead of each value. I also made the compile directives more general for future Unity updates.
Added a Vector2 onUpdate callback.
Made the compile directives more general for future Unity updates.