public void ViewSaleActoin(UISaleSlot _slot) { selectSaleSlot = _slot; if (selectSaleSlot.item == null || selectSaleSlot.item.id == 0) { actionButton[0].SetActive(true); actionButton[1].SetActive(false); actionButton[2].SetActive(false); } else { actionButton[1].SetActive(true); actionButton[2].SetActive(true); actionButton[0].SetActive(false); } }
public void ViewSaleAction(UISaleSlot _slot) { saleAction.transform.position = _slot.transform.position + Vector3.right * ((slotSize.x * 0.5f) + spacing.x); saleAction.gameObject.SetActive(true); saleAction.ViewSaleActoin(_slot); }