Hi I’m doing some actions in a OnMouseDown function, which switches a boolean. But the problem is it executes both actions simultaneously… How can I prevent this? I already tried putting them separately in an Up and a Down function but that didn’t work either. I also tried yield to make intervals before checking but that didn’t work either.
This way if the first is trye the second won’t do. The second will be checked only if the first one returns false.
Still, it does not make much sense since whether the first is true then the second won’t happen. If the first is not true the second won’t be either since you check the same thing plus target. Finally, both conditions do the same action.