How to write extensible code in Unity (5) — Loosely Coupled Architecture

<p>Okay, after seeing that scary Unit case earlier, how can we implement the so-called loose coupling architecture?</p> <p>Here, I will divide the entire Unit program into four parts for consideration: data layer, visual layer, logic layer, and composition layer.</p> <h1>Data layer</h1> <p>The data layer is used to handle data such as a player&rsquo;s health, attack power, movement steps, etc. In Unity,&nbsp;<code>ScriptableObject</code>&nbsp;can be used to store fixed data, which will be introduced in detail in the following chapters. Here, I will show you its code.</p> <p><a href="https://medium.com/@ShailaRuza70245/how-to-write-extensible-code-in-unity-5-loosely-coupled-architecture-60a9cce7b4da"><strong>Click Here</strong></a></p>