【パブリッシャー丸ごとセール第78弾】3月29日 0:00 〜 4月4日(木) 23:59まで
Kronnectのアセット全品50%オフ
↓↓↓ 今週の無料アセットプレゼント🎁
『Color Studio』$32.99 => FREE(4月4日 23:59まで無料)
クーポンコード:KRONNECT2024
【3D ESSENTIAL SALE】⏰️ 2024年3月21日 〜 4月3日 23:59頃まで
3Dゲーム制作に役立つ究極のアートやツール 半額セール開催中!!
【Humble Bundle】 その他 ソフトウェアバンドルはこちら
『 THE BEST OF SYNTY GAME DEV ASSETS #2 REMIX 』⏰️ 4月2日 3時まで
大人気ローポリ3Dモデル Synty Gameバンドル#2リミックス
『GAMEMASTERS TOOLKIT: ASSETS & TUTORIALS BUNDLE』 ⏰️ 4月9日 3時まで
Unityとアンリアルエンジン混合バンドル!$25で50アイテム
『PROTOTYPE TO PUBLISH IN UNITY BUNDLE』 ⏰️ 4月3日 3時まで
アイデアを素早く実現させるためのプロトタイピング特集バンドル 15ドルで20アセット
Pub\Sub Messenger is a Lightweight, Open Source Library for Unity.
This library will provide a Pub\Sub Mechanism that is a part of SOLID principles in programming.
PROBLEMS IN GAMES
* Wiring the Parts with Events – Tightly Coupled and may cause Memory Leak problems. The Publisher and the Subscriber have to know of each other, and a Subscriber can’t be collected by the GC if it’s connected with the Publisher with
strong event reference.
* Using Unity Event Routing – Although Unity Event Routing is a very good feature, it is a Unity Specific Solution and we need a generic one. Also, we cannot use it everywhere even if the project is in Unity.
* Dependency - In commonly used C# events or delegates, classes are “familiar” with each other and this prevents good modularity. This is NOT following SOLID Principles and Objects are not Encapsulated.
THE SOLUTION
* Pub\Sub Messenger - Container for Events that allows Decoupling of Publishers and Subscribers so they can evolve independently. This Decoupling is useful in Modularised Applications because new modules can be added that respond
to events defined by the Shell or, more likely, other modules. All events have a Weak Reference and invocation can be done Async or Sync way.
* Payloads - Instead of passing objects or modules, pass small Payloads (Data/Messages) that are relevant for the specific cases/events.
* Encapsulation - Classes/Modules will not be “familiar” with each other, this will allow better encapsulation and less dependencies.
* Weak Reference - In case of subscriber’s destruction, it will be removed automatically from Messenger’s list, since it was referenced via Weak Reference.
* SOLID Principles - Pub/Sub can be a great pattern in combination with Dependency Injection (DP) and with Inversion of Control (IoC), both part of SOLID Principles.
Supported Platforms: Android, iOS, Windows, Mac, Linux, WebGL
Supported Unity Versions: 2017.x, 2018.x, 2019.x
Sources
* GitHub Project
* Youtube Clip
▼ Humble Bundle
ソフトウェアバンドル
リンク集
copyright © Unity AssetStoreまとめ 割引情報 beta All Rights Reserved.