public static void BindViewController <TView, TController>(this DiContainer container, GameObject viewPrefab) where TView : View where TController : Controller { container.Bind <TView>().FromPrefab(viewPrefab).AsSingle().WhenInjectedInto <TController>(); container.BindController <TController>(); }
public static void BindViewController <TView, TController>(this DiContainer container, string viewPath) where TView : View where TController : Controller { container.Bind <TView>().FromPrefabResource(viewPath).AsSingle().WhenInjectedInto <TController>(); container.BindController <TController>(); }
public static void BindViewController <TView, TController>(this DiContainer container, GameObject viewPrefab) where TView : UIView where TController : UIController { container.Bind <TView>().FromComponentInNewPrefab(viewPrefab).AsSingle(); container.BindController <TController>(); }
public static void BindViewController <TView, TPresenter>(this DiContainer container, UiView view, Transform parent) where TView : UiView where TPresenter : UiPresenter { container.Bind <TView>().FromComponentInNewPrefab(view).UnderTransform(parent).AsSingle(); container.BindController <TPresenter>(); }