Gets the 2d Speed of a Game Object and stores it in a Float Variable. NOTE: The Game Object must have a rigid body 2D.
Game Object
The GameObject with the Rigidbody2D attached
Store Result
The speed, or in technical terms: velocity magnitude
Every Frame
Repeat every frame.