UI Button onClick() Mouse button detection
Hey Guys! I ran into a little problem. I'm about to create a game that has UI Buttons. I managed to figure out how to trigger events with the help of mybutton.onClick.Addlistener(). But this onClick detects both the left and right mouse buttons. What i want to do is to give 2 separate triggers for the same UI Button for example when i hit it with left mouse button it starts the fight, and when i hit with right one it changes the text shown on the screen. I have a battlesystem script where i handle the different battle states and thats where i would like to use the buttons. Thanks for your help!
Your answer
Follow this Question
Related Questions
Figuring out which function to call on button click 0 Answers
Character sword on back equip 2 Answers
Trouble making a restart button. 0 Answers
Dialogue not displaying next sentence 0 Answers
multiple buttons activating at the same time, I'm at my wits end 0 Answers