Move Command

In this task we will have a look at the command pattern and use it to detach the input from game entities. Further instructions are included inside the base package.

At the end of the task you should be able to rebind keys from the controls menu and only a single character should be moving through the use of commands.

Requirements for the task:

  • Finish the Command class as instructed in comments.
  • Create a concrete command class for MoveCommand.
  • Finish the InputHandler class as instructed in the comments.
  • Remove all input code from the GridMovement class.

Base Package:

  • To import the package drag it into the Unity window's project tab or select it from menu Assets>Import>Custom Package

 

;