public void ResetPot() { currentStatePot = ItemPotStateIngredients.Empty; IsStartCooking = false; listItem.Clear(); potUi.ResetUI(); }
public void Start() { listItem = new List <Item>(); currentStatePot = ItemPotStateIngredients.Empty; potUi.StartUiPot(); itemType = ItemType.Pot; }
public bool LeaveObjIn(Item item) { if (currentStatePot != ItemPotStateIngredients.Burning || currentStatePot != ItemPotStateIngredients.BurnedToTrash) { //hi poso el 2on igrdenit i esta aalert no torna a cooking // Son diferent crec jo tinc varies duracions una ui if (listItem.Count > 0 && listItem[0] != null) { if (listItem[0].name == item.gameObject.name) { listItem.Add(item); potUi.SetItemOnUISlot(item); currentStatePot = ItemPotStateIngredients.Cooking; currentStatePot = ItemPotStateIngredients.Cooking; return(true); } return(false); } else { listItem.Add(item); potUi.SetItemOnUISlot(item); currentStatePot = ItemPotStateIngredients.Cooking; currentStatePot = ItemPotStateIngredients.Cooking; return(true); } } return(false); }
public void SetItemPotState(ItemPotStateIngredients state) { ItemPot.currentStatePot = state; }