public void RemoveAllItem() { if (panelItemPreshow.childCount == 0) { return; } foreach (Transform transform in panelItemPreshow.transform) { Destroy(transform.gameObject); } Caldeirao.RemoveAllItens(); ButtonsPotionPanelController.DisableOkButton(); }
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(); } }
void Awake() { singleton = this; }