private void DropItem() { int itemId = DropManager.GetDrop(m_DropCategory); if (itemId == Consts.NULL_ITEM_ID) { return; } DropManager.DropItem(itemId, transform.position); }
private void DropItem() { int itemId = DropManager.GetDrop(m_SpecialItems, m_useDefault, m_Type); if (itemId == -1) { return; } DropManager.DropItem(itemId, transform.position); //Play a chest animation here Destroy(gameObject); }