script error

UnityEngine.Application' does not contain a definition for LoedLevel’

Check what functions it has:

You made a typo appparently, did you mean LoadLevel?

error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer

now it changed to this

There is another one typo ))) Post the line of code where error occurs.

where does the error occur ?

nothing is wrong ?

using UnityEngine;
using System.Collections;

public class BallScript : MonoBehaviour
{

public float speed;
public GUIText countText;
public GUIText wintext;
private int count;

void Start ()
{
count = 0;
SetCountText ();
wintext.text = “”;
}

void FixedUpdate ()
{
float moveHorizontal = Input.GetAxis (“Horizontal”);
float moveVertical = Input.GetAxis (“Vertical”);

Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);

rigidbody.AddForce (movement * speed * Time.deltaTime);
}

void OnTriggerEnter(Collider other)
{
if(other.gameObject.tag == “PickUp”)
{
other.gameObject.SetActive(false);
count = count + 1;
SetCountText ();
}
}

void SetCountText ()
{
countText.text = "Count: " + count.ToString();
if(count >= 12)
{
wintext.text = “YOU WIN”;
{

}
Application.LoadLevel = (“Level-2”);
}
}
}

Please use code tags when posting code: http://forum.unity3d.com/threads/143875-Using-code-tags-properly

The error message gives you the line of the error.

This is where your error is. You can’t assign a value to it, because it is not a variable. It’s a function, you have to call it like you did SetCountText ()

Application.LoadLevel ("Level-2");

IT SHOWS ME THIS

Level ‘Level-2’ (-1) couldn’t be loaded because it has not been added to the build settings.
To add a level to the build settings use the menu File->Build Settings…
UnityEngine.Application:LoadLevel(String)
BallScript:SetCountText() (at Assets/BallScript.cs:48)
BallScript:OnTriggerEnter(Collider) (at Assets/BallScript.cs:35)

I DID ADD IT TO THE BUILD SITTINGS

It’s reporting an index of -1, which means the level wasn’t found in the build settings