- Home /
cant loadlevel on C#
using UnityEngine; using System.Collections;
public class MainMenu : MonoBehaviour {
private string InstructionText = "Instructions:\nPress Left and Right Arrows to move.\nPress 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
Comment
Answer by MarkFinn · Nov 09, 2012 at 08:50 AM
You have a type. It should be :
Application.LoadLevel
NOT
Application.Load*ed*Level
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Load Level Help 1 Answer
Application.LoadLevel problem. 1 Answer