Question by
selajdinbilali · Jun 22, 2017 at 10:46 AM ·
uibuttonfps
fps block fire when click in a ui button
I am creating a very simple fps game. When the player touches the screen it shoots.
The problem is that I have a button in the ui to change the position of the player (up, down). The button works, but a shot is fired. How to block the shot being fired ?
Is there a way to know that Input.GetButtonDown("Fire1") will touch a UI button ? Or do I have to define two areas ?
Thanks for your help.
Comment