I'm trying to figure out how to use the UIEventListener.
Basically my game object needs to listen for a button being pressed down and released. I'm new to events and delegates and previously followed
THIS TUTORIAL VIDEO but since converting my UI to NGUI i'm lost in a few places.
Where do i put the event listener? Is it on my game object that I want to react to the button press or is it on it's own game object in the scene?
I was thinking I didn't need the UIEventListener as the script on my game object IS the event listener if I add the code?
Do I need to use UIButtonMessage with UIEventListener or are the 2 separate?
I've confused myself with this now and I'm sure i'm making it a lot more complicated than it needs to be. I thought the eventlistener went on all game objects that were "listening" for events. An event manager was used to send the events & the buttons sent their status to the manager?