Day 16 - Game Customer Service System
Hello!
I’ve been working on the customer system for my game lately. Thanks to AI, a lot of the tedious groundwork is now out of the way—it even generated some essential components for me, including:
CustomerController
Services
(with registry, etc.)CustomerManager
The basic flow goes like this:
- A customer is spawned.
- The registry finds a suitable service for them.
- The controller moves the customer toward that service.
This forms the backbone of the system. Of course, the details might change—like whether the customer waits at a reception desk, or just heads into a community hall to freely eat or sleep.
I also spent some time improving UI elements. I bought a new UI asset from the Unity Asset Store, and since I needed pathfinding, I picked up a pathfinding solution as well. I haven’t tried it yet, but I’m glad I don’t need to write the entire algorithm from scratch!
Lastly, I started reorganizing the scene structure. I wanted to break things up into more modular scenes so I can focus on each game element more clearly.
Scenes/Core/
├── Boot.unity // One-shot entry, loads Init.unity
├── Init.unity // Loads game scenes (and DevMode if enabled)
Scenes/Game/
├── Game.unity // Dungeon floor, walls, player spawn, environment
├── UI_Main.unity // Gameplay UI: money, fame, buttons, interaction hints
├── ShopServices.unity // Placed beds, tables, healing stations (empty at runtime, populated from save)
├── DungeonEnv.unity // Props, fog, torch FX, decor
├── Systems.unity // Global managers: CustomerManager, SceneLoader, FameManager
ChatGPT gave me this structure.
I liked the idea. Since I’m still new to Unity development, asking these fundamental questions and getting clear answers makes me feel like I’m at least on the right track.
I had to pause my dev time today because my son got up and needed attention—but that's life!
If you’ve enjoyed following along, feel free to subscribe here to get my devlog updates straight to your inbox. You can also check out my studios blog, where I post weekly updates, videos, and more about the development journey.
Thank you for reading! See you tomorrow.