using UnityEngine;
using System.Collections;
public class MainMenu : MonoBehaviour {
private string InstructionText = "Instructions:
Press Left and Right Arrows to move.
Press Spacebar to fire.";
private int ButtonWidth = 200;
private int ButtonHeight = 50;
void OnGUI()
{
GUI.Label(new Rect(10, 10, 200, 200), InstructionText);
if (GUI.Button(new Rect(10, 30, 200, 200), “Start Game”))
{
//###########THIS IS THE LINE I HAVING PROBLEM ################
Application.loadedLevel(1);
}
}
}
UNITY GIVE ME THIS ERROR
Assets/Scrips/MainMenu.cs(15,25): error CS1955: The member UnityEngine.Application.loadedLevel cannot be used as method or delegate