void UseItem(Button button, ItemModel item) { //call it in fight manager fightManager.UseItem(item); //update stacks or remove button if (item.stack > 0) { button.GetComponentInChildren <Text>().text = item.GetButtonName(); } else { Pooling.Destroy(button.gameObject); } }