Applying Dependency Inversion Principle in unity

Hi I’ve recently learned about the SOLID principles for best code practices and everything seemed to be making sense to me in terms of how to apply it myself until I came across the Dependency Inversion Principle…

I’ve already watched several unity and C# specific tutorials on it and I can’t find anything that clearly shows how to apply it within unity.

IMO the tutorials I keep coming across are vague overviews that don’t go into detail about how and why it should be done in a specific way within unity.

Personally if I’m going to learn something as complex as SOLID and applying it, I want to understand if I’m doing it correctly.

So if anyone knows of any resources that have detailed explanations and examples for how to apply the Dependency Inversion Principle in unity it will be very much appreciated.

Thanks.

 

Read more here: Source link