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); }
protected virtual void Start() { if (m_recipeUI == null) { var player = GetMainManager().GetPlayerById(Owner.ID); m_recipeUI = player.PlayerHUD; } NextRecipe(); }
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); }