I’m setting a variable of type Vector2 to a value during OnCollisionEnter2D, and a boolean flag to on.
During the subsequent lateUpdate, that boolean is checked, and if it’s on, I’m asking something to happen with that value of the Vector2 variable.
But the variable is reset to 0,0 every single time.
Why?
How do I pass a Vector2 and its value from OnCollisionEnter2D to the subsequent lateUpdate?