Unity/C# Challenge 1: Input Manager in Unity

Challenge: Utilize the WASD keys to move a character in Unity.

A placeholder character currently uncontrollable by the player

Upon implementing a character object in Unity, the next challenge becomes making the object controllable by the character; current code moves the object without external inputs:

Resulting in:

This is correctable by first verifying the relevant axes via Unity (in this case, vertical and horizontal):

Determining the axes’ names for your x and y axes (and buttons), and then applying them to variables in your player script:

Establish your variables in the update method…
…And then apply it to the character’s movement

Resulting in the character object being controllable: