Hi! I’m making a game that is a point and click. So when i put some NGUI button in scene and click in this buttons, my player walk (or run) until that spot where my button it is. I have to ignore a point and click when i click on button. If someone have an idea how do that on ngui button script, i appreciate.
Thanks!
Linus
2
Try this:
function LateUpdate() {
if(Input.GetMouseButtonDown(0)){
if(UICamera.hoveredObject){
return;
}
}
//Stuff was clicked on the level
}