This is a complete Unity game, called Gravity Switch.
It is ready for release, and it’s excellent for learning purposes.
Contains Admob and Unity Ads
How to play?
On mobile : Swipe left-right or up-down to move. Tap the buttons to change gravity.
On desktop/web : Use W-A-S-D or the arrow keys to move. Click on the buttons to change gravity.
Your goal is to move the player to the green block. However, if you touch any of the red or orange blocks, then you die.
Background music by Eric Matyas: http://www.soundimage.org
Sound effects: https://www.noiseforfun.com