Basically I want to detect button click event. This button is new Unity UI control.
But in this I have one problem. When I click on button, one of my statement also execute at same time.
Following statements :
if(Input.GetMouseButtonDown(0)){
// code snippet
}
So code under if statement also gets executed, I want to stop this. I only want to run my button click code.
At present button click code is running as well if statement code is running.
Please give me some suggestion in this.