コード例 #1
0
 public void ResetPot()
 {
     currentStatePot = ItemPotStateIngredients.Empty;
     IsStartCooking  = false;
     listItem.Clear();
     potUi.ResetUI();
 }
コード例 #2
0
 public void Start()
 {
     listItem        = new List <Item>();
     currentStatePot = ItemPotStateIngredients.Empty;
     potUi.StartUiPot();
     itemType = ItemType.Pot;
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 public void SetItemPotState(ItemPotStateIngredients state)
 {
     ItemPot.currentStatePot = state;
 }