public void OnRemoveItem(ItemSlot slot) { if (slot && !slot.m_IsBeingDestroyed) { slot.gameObject.SetActive(true); } if (slot.m_Item == null) { return; } if (slot.m_Item.m_Info.m_ID == ItemID.Bamboo_Bowl) { for (int i = 0; i < this.m_Slots.Count; i++) { this.m_Slots[i].m_ActivityUpdate = true; this.m_Slots[i].Activate(); } } if (slot.m_Item.m_Info.m_Type == ItemType.Bowl) { Bowl bowl = (Bowl)slot.m_Item; bowl.OnFirecampRemove(this.m_Firecamp); this.m_Bowls.Remove(bowl); } }
public void OnRemoveItem(ItemSlot slot) { if (slot.m_Item && slot.m_Item.m_Info.m_Type == ItemType.Bowl) { if (!slot.m_IsBeingDestroyed) { slot.gameObject.SetActive(true); } Bowl bowl = (Bowl)slot.m_Item; bowl.OnFirecampRemove(this); } }