Ejemplo n.º 1
0
        public void SetNewRecipeUI(PlayerHUD recipeUI)
        {
            List <Image> newIcons = new List <Image>();

            foreach (IngredientStatus status in m_fullRecipe)
            {
                newIcons.Add(GlobalRecipeList.IconSprites[status.m_type]);
            }
            recipeUI.SetNewRecipeIcons(newIcons);
        }
Ejemplo n.º 2
0
        protected virtual void Start()
        {
            if (m_recipeUI == null)
            {
                var player = GetMainManager().GetPlayerById(Owner.ID);
                m_recipeUI = player.PlayerHUD;
            }

            NextRecipe();
        }
Ejemplo n.º 3
0
        public void UpdateRecipeUI(PlayerHUD recipeUI, Ingredient collected)
        {
            List <Image> newIcons = new List <Image>();

            foreach (IngredientStatus status in m_fullRecipe)
            {
                Image icon = GlobalRecipeList.IconSprites[status.m_type];
                newIcons.Add(icon);
            }
            recipeUI.CollectIngredient(collected);
        }