protected override void OnCreated() { base.OnCreated(); Transform transform = this.transform; if (transform == HS_ViewManager.root.transform) { return; } this._uIScrollRect = HS_Base.FindProperty <HS.UI.HS_UIListView>(transform, "UIScrollRect"); this._uIScrollRect.onInit += OnListViewInit; this._uIScrollRect.onCellCreated += OnCellCreated; this._uIScrollRect.onClick += OnListViewClick; this._uIScrollRect.onSelected += OnListViewSelected; this._uIScrollRect.onDeselected += OnListViewDeselected; }
virtual protected void OnListViewSelected(HS_UIListView listView, int dataIndex) { }
virtual protected void OnListViewClick(HS_UIListView listView, HS_UIListViewCell cell, GameObject target) { }