private void Awake() { label = this.transform.Find("Text").GetComponent <Text>(); button = this.GetComponent <Button>(); button.onClick.AddListener(OnClick); scrollSystem = GetComponentInParent <ScrollSystem>(); }
public void Init(ScrollSystem scrollSystem) { this.scrollSystem = scrollSystem; }