Hi im developing a menu for my 2d game. But for some reason its not working and it keeps showing me this error…Assets/Menu/Scripts/Menu.cs(16,9): error CS8025: Parsing error.
Im not sure why here is my script…any help is welcome.
using UnityEngine;
using System.Collections;
public class Menu : MonoBehaviour
{
void OnGUI()
{
if(GUI.Button(new Rect(Screen.width/2.5f,Screen.height/3,Screen.width/5,Screen.height/10), "Play Game")
{
Application.LoadLevel(1);
}
if(GUI.Button(new Rect(Screen.width/2.5f,Screen.height/2,Screen.width/5,Screen.height/10), "Exit Game")
{
Application.Quit();
}
}
}