This is the moment when we start writing the code for our game. Create a new C# script and call it PlayerController
. Remember to keep your project structure nice and clean. The wise thing to do is to create a folder called Scripts
and keep the code there:
Add the PlayerController
script to the Player
game object in our scene by draging and dropping.