I put in this script but the console continues to give me these four errors
- Assets/ReturnMenu.cs(7,10): error
CS1519: Unexpected symbol `if’ in
class, struct, or interface member
declaration - Assets/ReturnMenu.cs(7,10): error
CS1519: Unexpected symbol `(’ in
class, struct, or interface member
declaration - Assets/ReturnMenu.cs(7,10): error
CS1519: Unexpected symbol `)’ in
class, struct, or interface member
declaration - Assets/ReturnMenu.cs(7,10): error
CS1519: Unexpected symbol `(’ in
class, struct, or interface member
declaration
If anyone can help please do so! Heres the script:
using UnityEngine;
using System.Collections;
public class ReturnMenu : MonoBehaviour
void Update()
{
if(Input.GetKeyDown(KeyCode.Escape))
Application.LoadLevel(0);
}