using UnityEngine;
using System.Collections;
public class myGUI : MonoBehaviour {
public Texture backgroundTexture;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI(){
GUI.DrawTexture (new Rect (0, 0, Screen.width, Screen.height), backgroundTexture);
if (GUI.Button (new Rect (100, 200, 100, 50), "Play Game")) {
Application.LoadLevel("level1")}
}
}
heres teh errors : Assets/mygui.cs(21,1): error CS8025: Parsing error
Assets/mygui.cs(19,56): error CS1525: Unexpected symbol `}’