We begin developing our sidescrolling platformer by creating a script that moves the main character using physics. We then manage these different states that the character can be in – moving horizontally, jumping, and so on – by using enums. In order to view the enum states in the inspector we also look at how to create a “Singleton” object in code, which is a very common and easy to understand design pattern with a variety of uses in Unity.