Please help solve this script error it keeps saying unexpected symbol { but I dont see anything wrong. Its a simple texture button script.
using UnityEngine;
using System.Collections;
public class GUIButton : MonoBehaviour {
public Texture2D texture = null;
private void OnGUI(){
if(GUI.Button(new Rect(Screen.width/2 -63,Screen.height/2 -63,texture.width, texture)){
Application.LoadLevel(1);
}
}
}