Yeah... I know why it is happening. It increments on disable. Other buttons lead to different scenes, so they are disabling my flower and incrementing my variable. It is a shame that it can't be on click or something else. I need to figure out some other way to use it in my setup...
Thank you for creating the scene. Yes, it works in your example. My buttons are set up exactly like yours, but it is not working. Probably the problem is somewhere else... Maybe I changed some setups or... I have no clue. https://ibb.co/7K4xDXc I will try to rebuild the scene tomorrow. If it will he...
Yes, I have exactly that setup. My objects are appearing and disappearing exactly as I want. I have no problem with it. Increment On Destroy is also on the object I want to use to influence my variable. But as I said, each UI button in the scene is influencing Increment On Destroy script. That is my...
I did all of it and the effect was the same. BUT! I found out that if I will set on the component "Increment On Destroy" Increment On "destroy" the thing is reacting on the button that takes us to another scene because it is destroyed. If Increment On is disabled, it interacts wi...
1. I created a quest about collecting (clicking on specific UI buttons in the scene) objects. https://ibb.co/v3mqG2X 2. I defined a variable to track the quest's progress. https://ibb.co/LCgY5dq 3. The user is entering a dialogue that starts a quest. It works. 4. The user needs to go to another scen...
1. I created a quest about collecting (clicking on specific UI buttons in the scene) objects. https://ibb.co/v3mqG2X 2. I defined a variable to track the quest's progress. https://ibb.co/LCgY5dq 3. The user is entering a dialogue that starts a quest. It works. 4. The user needs to go to another scen...
It just makes it easier to communicate that click event to other scripts as well.
However, do you know what is the exact problem with the situation here?
Why is the variable reacts on each UI button even if they don't have any components connected to the dialogue system?
It is set to 5 for testing reasons, but my problem is that I would like that variable to change only when I click on the button in the green frame, but it increments when I click on buttons in the pink frames.