Zenject——輕量級依賴注入框架 for Unity

理論 在通常狀況下,若是一個類依賴於某些服務,那麼可能會在內部去建立須要的服務:git public class Foo { ISomeService _service; public Foo() { _service = new SomeService(); } public void DoSomething() {
相關文章
相關標籤/搜索