Testability is a crucial element of every software product – game development is not an exclusion. To allow testability, all of the components must be independent and testable in separation. Once we wish to test something in isolation this means that we wish to decouple it. Reduce coupling is everything we want. It's so simple to implant hidden dependencies to your game and it's really so difficult to break them. This article can help you realize loose coupling and dependency injection within project in Unity, using the example project on github . you should join us on +unity3DIY
Unity3diy is a blog for unity game developers. We publish latest from unity asset store, unity game engine, unity software, unity technologies, unity games. Also unity packages and assetstore like uni tabs unity, paint 3d, qooapp, unity performance tool and an object reference is required for the non-static field.