Example #1
0
        public void AddContent(ScrollContentView prefab, ScrollContentInfo contentInfo)
        {
            var scrollContent = new ScrollContent(prefab, contentInfo);

            scrollContents.Add(scrollContent);
            Sync();
        }
Example #2
0
 public void Activate(ScrollContentView instance)
 {
     referenceInstance = instance;
     referenceInstance.transform.localPosition = new Vector3(rect.x, -rect.y);
     referenceInstance.Activate(contentInfo);
     referenceInstance.gameObject.SetActive(true);
 }
Example #3
0
 public ScrollContent(ScrollContentView prefab, ScrollContentInfo contentInfo)
 {
     this.prefab         = prefab;
     this.contentInfo    = contentInfo;
     prefabRectTransform = (RectTransform)prefab.transform;
 }
Example #4
0
 public void Deactivate()
 {
     referenceInstance.Deactivate(contentInfo);
     referenceInstance.gameObject.SetActive(false);
     referenceInstance = null;
 }