public ScreenFactory(IEnumerable <ScreenController> screens, ScreenRoot screenRoot, DiContainer container) { _screens = screens; _screenRoot = screenRoot; _container = container; }
public void Dispose() { GameObject.Destroy(_screenRoot); _screenRoot = null; }
public virtual IScreen FindScreen(string screen) { return(ScreenRoot.Find(screen)?.GetComponent <IScreen>()); }