Button Trigger Event
I have button in canvas, which has Event Trigger component.
On pointer down I am calling public function to change boolean variable to true.
On pointer up to I am calling public function to change boolean varaible to false.
The problem is that its not changing the variable value. I had tested it with Debug.Log() to see if the value is changed and it says it is, while actually its not. Looks like it is some local variable. Can someone explain me whats going on?
Your answer
Follow this Question
Related Questions
So i want this problem with ui buttons done 1 Answer
Whats wrong in my button on click event ??? 1 Answer
Creating a Game Over after a Trigger/Event 1 Answer
Assigning different buttons click events to the same function with a parameter dynamically 1 Answer
How to make click event so when click button points get decreased? 0 Answers