This project is an implementation of the well-known design pattern Command. The main feature showcased here in the project is the ability to control two different players with the same input action map, only changing its receiver. Also, the ability to undo and redo commands.
Gameplay.mp4
References used for the implementation:
Game Programming Patterns eBook: https://gameprogrammingpatterns.com/command.html
Unity eBook: https://unity.com/how-to/use-command-pattern-flexible-and-extensible-game-systems