public void RemoveAllItem()
 {
     if (panelItemPreshow.childCount == 0)
     {
         return;
     }
     foreach (Transform transform in panelItemPreshow.transform)
     {
         Destroy(transform.gameObject);
     }
     Caldeirao.RemoveAllItens();
     ButtonsPotionPanelController.DisableOkButton();
 }
Exemple #2
0
    private void OnItemEnter()
    {
        string textToCompare = string.Empty;

        foreach (TypeItem typeItem in itensInside)
        {
            if (textToCompare != string.Empty)
            {
                textToCompare += "|";
            }
            textToCompare += typeItem.ToString();
        }
        if (itens.ContainsKey(textToCompare))
        {
            potionBody = itens[textToCompare];

            ButtonsPotionPanelController.EnableOkButton();
        }
    }
Exemple #3
0
 void Awake()
 {
     singleton = this;
 }