Ejemplo n.º 1
0
    public void OnShow(_SourceItemData data, ItemButtonViewManager manager)//Action<ItemButtonView> back)
    {
        this.itemData = data;

        mManager = manager;

        transform.SetParent(manager.gridTransform);
        transform.localScale = Vector3.one;
        name = string.Format("Button Item {0}", data.title);

        UpdateIconSprite();

        UpdateState();
    }