Esempio n. 1
0
    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);
        }
    }
Esempio n. 2
0
 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);
 }