Use case example

As a use case, we will actually implement a Universal Controller that will permit us to control multiple devices, including a TV and radio. The main reason we are going to use the Universal Controller concept as an example is because it's going to be easier for us to learn the intricacies of the Command pattern, which we will do by implementing a system that is directly related to managing the invocation of commands on specific objects.

Get Hands-On Game Development Patterns with Unity 2019 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.