Question by
importguru88 · May 14, 2016 at 05:23 PM ·
errorscript errorsymbol
error CS1525: Unexpected symbol `&&' How do I correct this error
I am trying to access an script. I have an error on line (22,30) and 17. Here is my script.
using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI;
public class Game : MonoBehaviour { private scoreManager scoreManagerScript; private myClock MyClockScript;
void Awake ()
{
scoreManager = GetComponent<ScoreManagerScript>();
myClock = GetComponent<MyClockScript>();
}
void Update ()
{
if ((myClock != NULL) && (scoreManager != NULL))
{
}
if ((m_leftTime >= && < scoreManager.score))
{
SceneManager.LoadScene("time");
}
}
Comment
Best Answer
Answer by vintar · May 14, 2016 at 06:05 PM
this line is invalid :
if ((m_leftTime >= && < scoreManager.score))
should be summin like :
if(m_leftTime >= someNumber && someNumber < scoreManager.score)
Your answer
Follow this Question
Related Questions
(31,16): error CS1525: Unexpected symbol `(', expecting `)', `,', `;', `[', or `=' 2 Answers
Camera Switch Error 2 Answers
I'm in unity 2019.4.5f1 LTS and for some reason i keep getting an error 1 Answer
How do i fix this error? Cannot implicitly convert type `Sprite' to `UnityEngine.Sprite' 1 Answer
Getting weird error message!?!?!? 1 Answer