Exemplo n.º 1
0
    private void AddExternalLinkItem(ExternalLinkInfo externalLinkInfo, bool lazyLoad)
    {
        ExternalLinkItem entity = this.externalLinkItemsPool.GetEntity <ExternalLinkItem>(base.transform);

        ((RectTransform)entity.transform).anchoredPosition = Vector2.zero;
        entity.Init(externalLinkInfo, lazyLoad);
        this.item = entity;
    }
Exemplo n.º 2
0
    private void AddExternalLinkItem(ExternalLinkInfo externalLinkInfo)
    {
        GameObject       gameObject = UnityEngine.Object.Instantiate <GameObject>(this.externalLinkPrefab);
        ExternalLinkItem component  = gameObject.GetComponent <ExternalLinkItem>();

        component.Init(externalLinkInfo, false);
        this.items.Add(component);
        this.AddItemToScroll(component);
    }