Lesson 52 – Physics Movement, Singletons, Enum States

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.

Members Only Content (Source Code, Quiz, Q&A)

This content is for Extended Support Package members only.
Log In Register