- Home /
Question by
Ikun · Jan 29, 2017 at 12:46 PM ·
c#scripting problemif-statements
If condition true but code is not executed
I have a script which triggers a movement when a rotation is completed. The script checks the Euler angle of a transform to a int. If it is true the condition is executed. But for some weird reason the code in the if condition does not execute even if the condition is true. I cannot understand why.
In the image you can see that the debugger states that the condition is true but the code won't execute for some weird reason. Any help will be appreciated.
screenshot-8.png
(47.8 kB)
Comment
Your answer
Follow this Question
Related Questions
Update within an if statement not working? 3 Answers
Problem with transform.LookAt and if statement 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
C#, Problem with If Statements and GO Position Comparisons. 1 Answer