Question by
OmniTsunami · Aug 24, 2015 at 07:15 PM ·
scripting problem
I keep getting this error for a score keeper.. Operator `==' cannot be applied to operands of type `method group' and `int'
if(Application.LoadLevel == 1){
if (scoreCount > 2){
Application.LoadLevel ("Level 2");
}
}
Comment
Answer by Leoo · Aug 24, 2015 at 07:56 PM
Hello @OmniTsunami,
I belive you are actually looking for "Application.loadedLevel" property , instead of "LoadLevel";
if(Application.loadedLevel== 1){
if (scoreCount > 2){
Application.LoadLevel ("Level 2");
}
}
-Leo
Your answer
Follow this Question
Related Questions
Issue with Dynamic Laser Reflection on Walls 1 Answer
Help with [SerializeField] in a script! 1 Answer
Newbie question: Weird issue accessing another object's variable! 1 Answer
What part of my camera script is increasing my cameras X rotation? 1 Answer
how do I rezolve "look rotation viewing vector is zero"? 1 Answer