tk2dUIScrollableArea OnClickUIItem questions
hi,I want to ask how to add click Event of tk2dUIScrollableArea's child item?
here what I do is not right ?
the result is show always the first one on click ?
tk2dUIItem item= autoScrollableArea.GetComponent<tk2dUIItem>();
item.OnClickUIItem += onClickUIItem;
void onClickUIItem(tk2dUIItem item)
{
Debug.Log("click!");
var sprite= item.GetComponentInChildren<tk2dSprite>();//alway is the first itemui get this event .
anything wrong ?