Hello,
I have array of tk2dUIItem:
public tk2dUIItem[] targets;
void OnEnable(){
for(int i = 0;i < targets.Length; i++){
targets[i].OnClick += targetClicked;
}
}
void OnDisable(){
for(int i = 0;i < targets.Length; i++){
targets[i].OnClick -= targetClicked;
}
}
How can I detect which button was pressed in my "targetClicked" method?
Thanks.