Mediator Pattern - Reduce Chaotic Dependencies @git-amend
Mediator Pattern - Reduce Chaotic Dependencies  @git-amend
Uploaded March 2024 | Updated September 2026, 5 hours ago
Fix your tightly coupled systems! Learn how the Mediator pattern can become a central point of references and information to reduce coupling between objects. Today we'll look at two examples - an chat room for AI Agents and upholding the Law of Demeter, and for good measure we'll include the Visitor and Builder programming patterns.

Want to support me? πŸ˜€
Buy me a coffee! ko-fi.com/adammyhre

πŸ”” Subscribe for more Unity Tutorials youtube.com/@git-amend

Discord: discord.gg/FDRZGQBBUC

#unity3d #gamedev #indiedev

β–¬ Contents of this video β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬

0:00 Mediator Pattern
11:34 Law of Demeter

Visitor Pattern: youtu.be/Q2gQs6gIzCM
Service Locator: youtu.be/D4r5EyYQvwY

Mediator Code: gist.github.com/adammyhre/927556d14a957ed1422f4aa9cf9bd683
Unity Utils Repo: github.com/adammyhre/Unity-Utils

Assets Shown In This Video (Affiliate Links)
Dungeon Mason Tiny Hero Duo: (FREE): assetstore.unity.com/packages/3d/characters/humanoids/rpg-tiny-hero-duo-pbr-polyart-225148?aid=1101lw3sv
Tiny Heroes: assetstore.unity.com/packages/3d/characters/humanoids/rpg-tiny-hero-wave-pbr-228701?aid=1101lw3sv
Monsters: assetstore.unity.com/packages/3d/characters/creatures/rpg-monster-bundle-polyart-261480?aid=1101lw3sv
Pure Nature 2: Mountains?aid=1101lw3svassetstore.unity.com/packages/3d/environments/pure-nature-2-mountains-269088
Hierarchy Icons: assetstore.unity.com/packages/tools/utilities/better-hierarchy-272963?aid=1101lw3sv
Kronnect Beautify: assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/beautify-3-advanced-post-processing-233073?aid=1101lw3sv

*Follow me!*
https://linktr.ee/gitamend
Mediator Pattern - Reduce Chaotic DependenciesYour Factory Pattern Might Be Wrong and You Dont Even Know ItMatch 3 Candy Crush Game in Unity (Part 2)Memento: Capture Game State Snapshots in UnityTemplate Method: The Pattern That Saves You from Inheritance HeadachesWhen Complexity Becomes Your Enemy in Game DevCustom Shader FX Nodes - No BoilerplateTwo Ways to Roll Weighted LootImprove Your Unity Code with MVC/MVP Architectural PatternsDont Let Your Nav Mesh Update Strategy RUIN Your Games PerformanceUnlock Lightning-Fast Math in Unity with Compute Shaders & Render FeaturesBoost Your Unity Game Speed With Powerful GPU Instancing And Batching
git-amend |

Mediator Pattern - Reduce Chaotic Dependencies

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER