I face a wired problem in my project. I’m not able to load default level.
Following is my line to call level"1".
if(Result = true) Application.LoadLevel(1);
But, when I run the simulator, it always loads level 1. It does not check “Result” condition.
Also, in the console, Debug log says ‘Result’ is true when I checked.
thats why you should write constants first in comparisons: if(true = Result) and the compiler complains and you would have saved some time for debugging. the compiler is the best debugging tool you have at hand. use it to your advantage.