Пример #1
0
        public void OnSelectPrize(UIPrizeElement prizeElement)
        {
            GameManager.Instance.currPrize = prizeElement.prizeType;
            SetInfoSelectorPrize();

            bttStart.interactable = true;
        }
Пример #2
0
        /// <summary>
        /// Llenar listado con los premios disponibles
        /// </summary>
        private void FillPrizeElements()
        {
            // Obtener listado de premios
            DataPrize[] dataPrizes = GameManager.Instance.GetAllDataPrize();

            // Crear listado
            foreach (DataPrize dp in dataPrizes)
            {
                UIPrizeElement uip = Instantiate(prefUIPrizeElement, ContentPrizes).GetComponent <UIPrizeElement>();

                uip.SetInfo(dp);
            }

            dataPrizes = null;
        }