public ILayer GetPopup(Transform parent) { IUiPrefabs prefabs = resourcesManager.Instance().UiPrefabs; RectTransform container = prefabs.Container(parent, UiConst.CONTAINER_POPUP); container.gameObject.SetActive(true); Layer <IComponent> popup = new Layer <IComponent>(LayersTypes.PopUp); popup.Add(UiConst.POPUP_TYPE1, _popUpFactory.PopUp(container)); return(popup); }
public ILayer GetWindows(Transform parent) { IUiPrefabs prefabs = resourcesManager.Instance().UiPrefabs; RectTransform container = prefabs.Container(parent, UiConst.CONTAINER_WINDOW); container.gameObject.SetActive(true); Layer <IComponent> windows = new Layer <IComponent>(LayersTypes.Windows); windows.Add(UiConst.WINDOW_MAIN, _windowFactory.Menu(container)); return(windows); }