What is the best way to decouple your code from Unity Classes like Input using Zenject?
Since a lot of unity systems require you to make static calls to methods like the Input system I wonder what would be a good way to decouple your code from those systems. The obvious and tedious way would be to wrap them inside classes that you can then inject with zenject. I wonder if there is an easier way to do so?
Posted Nov 16, 2017, 6:14 PM UTC
20
No. Exactly what you want to do. If you want to unit test it will need to be through interfaces.