Source code for completed 2D character controller for Unity tutorial from my site, roystan.net.
Contains a 2D character controller that can walk and jump. This controller does not handle sloped surfaces: only flat ground or vertical walls. Uses custom physics and collision—no rigidbodies or forces are used.