Question by
jacobjones · Oct 28, 2015 at 12:08 PM ·
updateif statement
Does the amount of if else statements within the Update matter?
I asked a question similar to this but received no answer. I've noticed that sometimes, if there are a lot of if else statements that the ones near the bottom are sometimes ignored. If I move them up higher in the chain they are activated. Even weirder is there will be statements below the originally ignored statement that work all the time. Has anyone else come across this? Is there any explanation beyond me making some sort of typo, which is possible, but damn the code is so simple.
I have an example over here http://answers.unity3d.com/questions/1088965/unity-seems-to-be-not-registering-a-specific-tag.html#answer-1088969 I just noticed the same type of issue in a different place and it had got me wondering.
Comment