when i click on Button i want ONLY my button to work.HOW?
so i have some button in a game with a character that shoots on click so when i click the UI BUTTONS my char also shoots .so i want when i click the button ONLY the button to work.Nothing else or smth to stop making my char to shoot.i tried to put a bool onClick and when the bool is false then my character to shoot but it seems not to work because when i click the shoot goes first then the button click or smth
Could you provide an example of what you've already tried, how you have your character/UI set up, etc. It's hard to do much with what you've given us.
Your answer
Follow this Question
Related Questions
How to write a script for an existing button 1 Answer
Assigning a GameObject variable to equal another GameObject variable via C# script. 0 Answers
How to check which button was clicked from script. 1 Answer
Change button color to intermediate value on onclick() event 1 Answer
hi guys who can help me?(i am a persian boy so ... Readable plzz) 1 Answer