how to make Click Button independent from click to shoot?
so i have a character and when i click (Input.GetMouseButton(0)) he shoots. I added a button as a special move and when i click the button the character shoots.how to make my character not to shoot when the button is pressed?(i cant disable the shoot script) i just want to make the button area not recognizable from the shoot script or smth..
Comment
Best Answer
Answer by DimSour · Nov 06, 2016 at 04:30 PM
EventSystem.current.IsPointerOverGameObject() was my solution :)
Your answer
![](https://koobas.hobune.stream/wayback/20220612100147im_/https://answers.unity.com/themes/thub/images/avi.jpg)