Use case example

Our use case will be straightforward, and we will not focus on a specific in-game system. Instead, we will concentrate on building a simple Service Locator that will offer the ability to link a client to the following services dynamically:

  • Currency converter: A service that converts in-game currency to a real-world value
  • Lighting coordinator: A system that manages the lights in our scenes
  • Lobby coordinator: A service that coordinates with the multiplayer lobby to set up "death matches"

But, of course, we could add many available services to the registry, but for this example, we will focus on just those three.

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.