private static UITouchBlockPresenter CreateTouchBlockPresenter(ICanvas canvas, string touchBlockWindowPrefabPath) { var touchBlockPrefabParams = PrefabGenParamsFactory.Create(canvas, touchBlockWindowPrefabPath); var touchBlockPresenter = PresenterFactory <UITouchBlockPresenter, UITouchBlockWindow> .Create(touchBlockPrefabParams); return(touchBlockPresenter); }
protected TPresenter CreatePresenter <TPresenter, TView>(ICanvas canvas, string prefabPath) where TPresenter : PresenterBase <TView> where TView : ViewBase { var prefabGenParams = PrefabGenParamsFactory.Create(canvas, prefabPath); var presenter = PresenterFactory <TPresenter, TView> .Create(prefabGenParams); _presenters.Add(presenter); return(presenter); }