示例#1
0
    private void AnchorSticker(Sticker sticker, int slot)
    {
        sticker.slotIndex = slot;
        sticker.parentTab = this;
        sticker.transform.SetParent(this.transform, false);
        sticker.transform.localScale    = Vector3.one;
        sticker.transform.localPosition = _slots[slot].transform.localPosition;
        _slots[slot].gameObject.SetActive(false);

        sticker.GetComponent <CanvasGroup>().interactable   = true;
        sticker.GetComponent <CanvasGroup>().blocksRaycasts = true;
    }