A refactored version of the unity 2D platformer sample code.