hey guys! why i’m getting parsing error in this script?
Assets/Standard Assets/Scripts/MenuScript.cs(16,1): error CS8025: Parsing Error
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
void OnGUI(){
if (GUI.Button(new Rect((Screen.width-100)/2, (Screen.height-170)/2, 100, 30),"Level")){
Application.LoadLevel(1);
}
if (GUI.Button(new Rect((Screen.width-100)/2, (Screen.height-170)/2 + 35, 100, 30),"Level 2")){
Application.LoadLevel(2);
}
if (GUI.Button(new Rect((Screen.width-100)/2, (Screen.height-170)/2 + 70, 100, 30),"Quit")){
Application.Quit();
}
}