gustavopsantos / Reflex

Minimal dependency injection framework for Unity
MIT License
730 stars 51 forks source link

Change GameObjectSelfInjector switch to use some "Lookup Table Pattern"/"Map-Based Dispatch Pattern" #73

Closed GabrielBigardi closed 5 days ago

GabrielBigardi commented 5 days ago

The code looks cleaner this way, it's shorter and there is no need to throw a outofrangeexception for the enum in this case.