- Updated character controls.
- There's still an issue with the raycast, but otherwise it works okay.
- I also changed the player to be a rigidbody and to have a 2D box collider, and I made the platform have a 2D box collider instead of a 3D one (otherwise the player would just fall through the platform).