Beispiel #1
0
        public LB_PopUp GetPopUp(PopUpSettings popUpSettings)
        {
            var popUpTemplate = pool.GetPoolable();

            popUpTemplate.ApplySettings(popUpSettings);
            return(popUpTemplate as LB_PopUp);
        }
Beispiel #2
0
        public LB_PopUp PresentPopUp(PopUpSettings popUpSettings)
        {
            var popUp = popUpFabric.GetPopUp(popUpSettings);

            popUp.transform.SetParent(gameObject.transform);
            popUp.SetAnchorPosition(new Vector2(0, 0));
            panelCanvas.enabled = true;

            AddPopUpToQueue(ref popUp);
            SetActivePopUp();

            Activate();

            return(activePopup);
        }