- Home /
Question by
54D13 · Mar 24, 2015 at 06:28 AM ·
parsing errorunexpected-symbol
Errors in the Code - Please help!
So, I'm getting a Parsing Error on line (25,1) and an Unexpected symbol, being } If anyone could tell me how to fix it it would be much appreciated. Im following a YT tutorial and I cannot find out how.
using UnityEngine;
using System.Collections;
public class Checkpoint : MonoBehaviour {
public LevelManager levelManager;
// Use this for initialization
void Start () {
levelManager = FindObjectOfType<LevelManager> ();
}
// Update is called once per frame
void Update () {
}
void OnTriggerEnter2D(Collider2D other)
{
if(other.name == "Player")
{
levelManager.currentCheckpoint = gameObject;
Debug.Log ("Activated Checkpoint " + transform.position)
}
}
}
Comment
$$anonymous$$issing semi-colon on the end of line 22.
Your answer
Follow this Question
Related Questions
Unity always gives me errors 1 Answer
Parser Error Unexpected symbol `m_MovementAudio' 1 Answer
Unexpected symbols 0 Answers
parser error? NpcDialog Script [pretty simple though...] 3 Answers
C# Parsing error 2 Answers