Hello again,
So I am trying to create a script to give me functions for a button, and when ever I try to compile the script, it tells me that there is a } in the wrong place in line 24. Any help?
Here is my code:
using UnityEngine;
using System.Collections;
public class MenuScript : MonoBehaviour {
public GameObject FirstMenu;
public GameObject OptionsMenu;
// Use this for initialization
void Start () {
Cursor.visible = true;
Cursor.lockState = CursorLockMode.None;
FirstMenu.SetActive (true);
OptionsMenu.SetActive (false);
}
public void StartGame () {
Application.LoadLevel ("Scene1");
}
public void Options() {
FirstMenu.SetActive (false);
OptionsMenu.SetActive(true)
}
}